<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<!--
PCGen Character Sheet Template
==============================
Author: Richard O'Doherty-Gregg
Email: OdGregg@bigpond.com
Modifications by: arcady
Email: arcady0@yahoo.com
Revisions: Barak  10/15/02
Email: barak@voyager.net
Revisions: Tir-Gwaith 10/11/09
Email: tir.gwaith@gmail.com
Revisions: thZero 12/01/11
Email: thzerodotcom@gmail.com
-->
<head>
<meta http-equiv="content-type" content="text-html; charset=utf-8" />
<title>|NAME| [|POOL.COST| Points]</title>
<style type="text/css">
	body { font-family: Tahoma; }
	.font4 {  font-size:4pt; }
	.font5 {  font-size:5pt; }
	.font6 {  font-size:6pt; }
	.font7 {  font-size:7pt; }
	.font8 {  font-size:8pt; }
	.font9 {  font-size:9pt; }
	.h { font-size:8pt; vertical-align: bottom; }
	.ab { font-size:10pt; text-align:center; color:white; background:black; }
	.abb { font-size:10pt; text-align:center; font-weight:bold; border: 1px solid black;}
	.abt { font-size:10pt; text-align:center; font-weight:bold; border: 5px solid lightgray;}
	.sptab { vertical-align:top; text-align:center;font-size:8pt;}
	.sptab1 { vertical-align:top; text-align:left;font-size:8pt;}
	.sptab2 { vertical-align:top; text-align:right;font-size:8pt;}
	.notetab { vertical-align:top;border: 1px solid black; text-align:left;font-size:8pt;}
	.skl { font-size: 9pt; font-weight:bold; text-align:center; vertical-align:middle; border: 4px solid black;}
	.spname { vertical-align:top; text-align:left;font-size:8pt;}
	.sptop { vertical-align:top;border: 1px solid black; text-align:center;font-size:8pt; color:white;}
	.splevel {  background:black; text-align:center;font-size:9pt; color:white;}
	.sphead {  background:black; text-align:center;font-size:12pt; color:white;}
	.notehead {  background:black; text-align:center;font-size:12pt; color:white;}
	.biodata { vertical-align:bottom; text-align:left;font-size:9pt;}
		.topline {
		border-top-width:1px;
		border-top: 1pt solid black;
		font-size:6pt;
	}
	.border {
		border: 1px solid black;
	}
	.border4 {
		border: 1px solid black;
		font-size:4pt;
	}
	.border7 {
		border: 1px solid black;
		font-size:7pt;
	}
	.border8 {
		border: 1px solid black;
		font-size:8pt;
	}
	.border9 {
		border: 1px solid black;
		font-size:9pt;
	}
	.border10 {
		border: 1px solid black;
		font-size:10pt;
	}
	.tempborder {
		border: 5px solid lightgray;
	}
	.borderbottom {
		border-bottom-width:1px;
		border-bottom: 1pt solid black;
	}
	.borderbottom8 {
		border-bottom-width:1px;
		border-bottom: 1pt solid black;
		font-size:8pt;
	}
	span.notes p {margin-top:0; margin-bottom:0;}
</style>
</head>



<body bgcolor="white">

<!-- START Top Character Data -->
<table cellpadding="0" cellspacing="4" border="0" width="100%" summary="Character Info">
 <tr>
  <td colspan="2" class="h">|NAME| |%FOLLOWEROF|- |FOLLOWEROF| |%|</td>
  <td colspan="2" class="h">|PLAYERNAME|</td>
  <td colspan="1" class="h">|ALIGNMENT|</td>
  <td colspan="1" class="h">|DEITY|</td>
  <td class="h">|POOL.COST|</td>
  <td rowspan="6" align="center" width="1%" class="border"><font style="font-size:10pt"><a href="#Bio"><img src="file://|PORTRAIT|" height="100" alt="Click for Bio" border="0" /></a><br /></font></td>
 </tr>
 <tr>
  <td colspan="2" class="topline">CHARACTER NAME</td>
  <td colspan="2" class="topline">PLAYER</td>
  <td colspan="1" class="topline">ALIGNMENT</td>
  <td colspan="1" class="topline">DEITY</td>
  <td class="topline">POINTS</td>
 </tr>
 <tr>
  <td colspan="1" class="h">|CLASSLIST|</td>
  <td colspan="1" class="h">|EXP.CURRENT|</td>
  <td colspan="1" class="h">|RACE|</td>
  <td class="h">|SIZELONG| / |FACE|</td>
  <td class="h">|HEIGHT|</td>
  <td class="h">|WEIGHT|</td>
  <td colspan="1" class="h">|VISION|</td>
 </tr>
 <tr>
  <td colspan="1" class="topline">CLASS</td>
  <td colspan="1" class="topline">EXPERIENCE</td>
  <td colspan="1" class="topline">RACE</td>
  <td class="topline">SIZE / FACE</td>
  <td class="topline">HEIGHT</td>
  <td class="topline">WEIGHT</td>
  <td colspan="1" class="topline">VISION</td>
 </tr>
 <tr>
  <td class="h">|TOTALLEVELS|</td>
  <td class="h">|EXP.NEXT|</td>
  <td class="h">|AGE|</td>
  <td class="h">|GENDER|</td>
  <td class="h">|COLOR.EYE|</td>
  <td colspan="2" class="h">|COLOR.HAIR|, |LENGTH.HAIR|</td>
 </tr>
 <tr>
  <td class="topline">LEVEL</td>
  <td class="topline">NEXT LEVEL</td>
  <td class="topline">AGE</td>
  <td class="topline">GENDER</td>
  <td class="topline">EYES</td>
  <td colspan="2" class="topline">HAIR</td>
 </tr>
</table>
<!-- STOP Top Character Data -->
<!-- START Page Master Table -->
<table border="0" cellpadding="0" cellspacing="0" width="100%" summary="Page Master Table">
  <tr>
    <td rowspan="2" valign="top">
      <table summary="Stat Block"> <!-- START Abilities Table -->
        <tr>
          <td align="center" width="20%" class="font4">ABILITY<br />NAME</td>
          <td align="center" width="20%" class="font4">ABILITY<br />SCORE</td>
          <td align="center" width="20%" class="font4">ABILITY<br />CURRENT</td>
          <td align="center" width="20%" class="font4">ABILITY<br />MODIFIER</td>
          <td align="center" width="20%" class="font4">ABILITY<br />DAMAGE</td>
          <td align="center" width="20%" class="font4">ABILITY<br />BONUS</td>
          </tr>
|FOR,%stat,0,COUNT[STATS]-1,1,1|
        <tr>
          <td class="ab"><b>|STAT.%stat.NAME|</b><font style="font-size:5pt"><br />|STAT.%stat.LONGNAME|</font></td>
          <td class="abb"><span id="ability_|%stat|">|STAT.%stat|</span></td>
          <td class="abb"><span id="ability_|%stat|_current">|STAT.%stat|</span></td>
          <td class="abb"><span id="ability_|%stat|_mod">|STAT.%stat.MOD|</span></td>
          <td class="abt"><span id="ability_|%stat|_damage"><br/></span></td>
          <td class="abt"><span id="ability_|%stat|_bonus"><br/></span></td>
          </tr>
|ENDFOR|
        </table> <!-- STOP Abilities Table -->
      </td>
    <td colspan="2" valign="top">
|IIF(VAR.IF(var("UseAlternateDamage")==0;1;0):1)|
	<table summary="Hit Point Table"> <!-- START -->
        <tr>
          <td align="center" width="50"></td>
          <td align="center" width="75" valign="bottom"></td>
          <td align="center"></td>
          <td align="center" width="75" class="font5"><br />CURRENT HP</td>
          <td align="center"></td>
          <td align="center" width="75" class="font5"><br />SUBDUAL DAMAGE</td>
          <td align="center"></td>
          <td align="center" width="75" class="font5"><br />TEMP HP</td>
          <td align="center"></td>
          <td align="center" width="150" class="font5"><br />DAMAGE<br />REDUCTION</td>
          <td align="center"></td>
          <td align="center" width="200" class="font5"><br />SPEED</td>
          </tr>
        <tr>
          <td align="center" bgcolor="black"><font style="font-size:9pt" color="white"><b>HP</b></font>
            <font style="font-size:5pt" color="white"><br />Hit Points</font></td>
          <td align="center" class="border9"><b><span id="damage_primary">|HP|</span></b></td>
          <td align="center"><br /></td>
          <td align="center" class="border9"><b><span id="damage_primary_current"></span></b><br /></td>
          <td align="center"><br /></td>
          <td align="center" class="border9"><b><span id="damage_secondary_current"></span></b><br /></td>
          <td align="center"><br /></td>
          <td align="center" class="border9"><b><span id="damage_primary_temp"</span></b><br /></td>
          <td align="center"><br /></td>
          <td align="center" class="border9"><b>&nbsp;|DR|&nbsp;</b></td>
          <td align="center"><br /></td>
          <td align="center" class="border9">
|FOR,%movement,0,COUNT[MOVE]-1,1,1|
|MOVE.%movement.NAME|&nbsp;|MOVE.%movement.RATE|
|IIF(MOVE.%movement.NAME:Fly)|
(|ABILITYALL.Special Ability.HIDDEN.0.TYPE=Maneuverability.ASPECT.Maneuverability|)
|ENDIF|
|ENDFOR|
	    </td>
          </tr>
       </table> <!-- STOP Hit Point Table -->
|ELSE|
       <table summary="Vitality/Wound Point Table"> <!-- START Vitality/Wound Point Table-->
        <tr>
          <td align="center" width="50"></td>
          <td align="center" width="25" valign="bottom"></td>
          <td align="center"></td>
          <td align="center" width="100" class="font5"><br />CURRENT VITALITY</td>
          <td align="center"></td>
          <td align="center" width="100" class="font5"><br />SUBDUAL DAMAGE</td>
          <td align="center"></td>
          <td align="center" width="50"></td>
          <td align="center" width="25" valign="bottom"></td>
          <td align="center"></td>
          <td align="center" width="75" class="font5"><br />CURRENT WP</td>
          <td align="center"></td>
          <td align="center" width="60" class="font5"><br />DAMAGE<br />REDUCTION</td>
          <td align="center"></td>
          <td align="center" width="120" class="font5"><br />SPEED</td>
          </tr>
        <tr>
          <td align="center" bgcolor="black"><font style="font-size:9pt" color="white"><b>VP</b></font>
            <font style="font-size:5pt" color="white"><br />Vitality</font></td>
          <td align="center" class="border9"><b>|HP|</b></td>
          <td align="center"><br /></td>
          <td align="center" class="border9"><br /></td>
          <td align="center"><br /></td>
          <td align="center" class="border9"><br /></td>
          <td align="center"><br /></td>
          <td align="center" bgcolor="black"><font style="font-size:9pt" color="white"><b>WP</b></font>
            <font style="font-size:5pt" color="white"><br />Wound Points</font></td>
          <td align="center" class="border9"><b>|ALTHP|</b></td>
          <td align="center"><br /></td>
          <td align="center" class="border9"><br /></td>
          <td align="center"><br /></td>
          <td align="center" class="border9"><b>&nbsp;|DR|&nbsp;</b></td>
          <td align="center"><br /></td>
          <td align="center" class="border10">
|FOR,%movement,0,COUNT[MOVE]-1,1,1|
|MOVE.%movement.NAME|&nbsp;|MOVE.%movement.RATE|
|IIF(MOVE.%movement.NAME:Fly)|
(|ABILITYALL.Special Ability.HIDDEN.0.TYPE=Maneuverability.ASPECT.Maneuverability|)
|ENDIF|
|ENDFOR|
	    </td>
          </tr>
       </table> <!-- STOP Vitality/Wound Point Table -->
|ENDIF|
      <table summary="AC Table"> <!-- Armor Class Table -->
        <tr>
          <td align="center" bgcolor="black"><font style="font-size:9pt" color="white"><b>AC</b></font>
            <font style="font-size:5pt" color="white"><br />Armor Class</font></td>
          <td align="center" class="border9"><b><span id="defense_total">|AC.Total|</span></b></td>
          <td align="center" class="font7"><b>:</b></td>
          <td align="center" class="border9"><b><span id="defense_flat">|AC.Flatfooted|</span></b></td>
          <td align="center" class="font7"><b>:</b></td>
          <td align="center" class="border9"><b><span id="defense_touch">|AC.Touch|</span></b></td>
          <td align="center" class="font7"><b>=</b></td>
          <td align="center" class="border9"><b>|AC.Base|</b></td>
          <td align="center" class="font7"><b>+</b></td>
          <td align="center" class="border9"><b>|AC.Armor|</b></td>

          <td align="center" class="font7"><b>+</b></td>
          <td align="center" class="border9"><b>|AC.Shield|</b></td>

          <td align="center" class="font7"><b>+</b></td>
          <td align="center" class="border9"><b><span id="defense_stat">|AC.Ability|</span></b></td>
          <td align="center" class="font7"><b>+</b></td>
          <td align="center" class="border9"><b>|AC.Size|</b></td>
          <td align="center" class="font7"><b>+</b></td>
          <td align="center" class="border9"><b>|AC.NaturalArmor|</b></td>
          <td align="center" class="font7"><b>+</b></td>
          <td align="center" class="border9"><b>|AC.Dodge|</b></td>
          <td align="center" class="font7"><b>+</b></td>
          <td align="center" class="border9"><b>|AC.Deflection|</b></td>
          <td align="center" class="font7"><b>+</b></td>
          <td align="center" class="border9"><b>|AC.Misc|</b></td>
          <td align="center" class="font7"><b>+</b></td>
          <td align="center" class="border9"><b><span id="defense_temp">&nbsp;</span></b></td>
          </tr>
        <tr>
          <td align="center" width="50"></td>
          <td align="center" width="25" valign="top"><font style="font-size: 6pt"><b>TOTAL</b></font></td>
          <td align="center"></td>
          <td align="center" width="25" valign="top"><font style="font-size: 6pt"><b>FLAT</b></font></td>
          <td align="center"></td>
          <td align="center" width="25" valign="top"><font style="font-size: 6pt"><b>TOUCH</b></font></td>
          <td align="center"></td>
          <td align="center" width="25" class="font4">BASE</td>
          <td align="center"></td>
          <td align="center" width="25" class="font4">ARMOR<br />BONUS</td>
          <td align="center"></td>
          <td align="center" width="25" class="font4">SHIELD<br />BONUS</td>
          <td align="center"></td>
          <td align="center" width="25" class="font4">STAT<br />BONUS</td>
          <td align="center"></td>
          <td align="center" width="25" class="font4">SIZE<br />BONUS</td>
          <td align="center"></td>
          <td align="center" width="25" class="font4">NATURAL<br />ARMOR</td>
          <td align="center"></td>
          <td align="center" width="25" class="font4">DODGE<br />BONUS</td>
          <td align="center"></td>
          <td align="center" width="25" class="font4">DEFLECTION<br />BONUS</td>
          <td align="center"></td>
          <td align="center" width="25" class="font4">MISC<br />BONUS</td>
          <td align="center"></td>
          <td align="center" width="25" class="font4">TEMP</td>
          </tr>
        </table> <!-- STOP AC Table -->
      </td>
    </tr>
  <tr>
  <td valign="top">
<!-- START Initiative Table -->
   <table width="100%" summary="Initiative Table">
    <tr>
     <td align="center" bgcolor="black"><font style="font-size:9pt" color="white"><b>INITIATIVE</b></font><font style="font-size:5pt" color="white"><br />Modifier</font></td>
     <td align="center" class="border10"><b><span id="initiative_current"><br></span></b></td>
     <td align="center" class="font7"><b><br></b></td>
     <td align="center" class="border10"><b><span id="initiative_total">|INITIATIVEMOD|</span></b></td>
     <td align="center" class="font7"><b>=</b></td>
     <td align="center" class="border10"><b><span id="initiative_ability">|STAT.1.MOD|</span></b></td>
     <td align="center" class="font7"><b>+</b></td>
     <td align="center" class="border10"><b>|INITIATIVEBONUS|</b></td>
     <td width="50%" rowspan="2" align="center"><br /></td>
    </tr>
    <tr>
     <td align="center" width="50" class="font7"></td>
     <td align="center" width="25" valign="top" class="font7">CURRENT</td>
     <td align="center"></td>
     <td align="center" width="25" valign="top" class="font7">TOTAL</td>
     <td align="center"></td>
     <td align="center" width="25" class="font5">DEX</td>
     <td align="center"></td>
     <td align="center" width="25" class="font5">MISC</td>
    </tr>
   </table>
<!-- STOP Initiative Table -->
<!-- START Base Attack Table -->
   <table width="100%" summary="Base Attack Table">
    <tr>
     <td align="center" bgcolor="black"><font style="font-size:9pt" color="white"><b>BASE ATTACK</b></font><font style="font-size:5pt" color="white"><br />Bonus</font></td>
     <td align="center" width="94" class="border"><font style="font-size: 10pt"><b><span id="attack_base">|ATTACK.MELEE|</span></b></font></td>
    </tr>
   </table>
<!-- STOP Base Attack Table -->
  </td>
  <td rowspan="2" valign="top" width="50%" style="padding-left:5px">
|%VAR.TOTALPOWERPOINTS.GTEQ.1|
<!-- START PSI Power Points Table -->
   <table cellpadding="0" cellspacing="0" border="0" width="100%" summary="Power Point Table">
    <tr>
     <td colspan="6" bgcolor="black" align="center"><font style="font-size: 9pt" color="white"><b>PSI POWER POINTS</b></font></td>
    </tr>
    <tr>
     <td bgcolor="#000000"><font color="#FFFFFF" style="font-size:9pt"><b>&nbsp;Base PP</b></font></td>
     <td bgcolor="#FFFFFF" class="border" align="center"><font style="font-size:9pt">|VAR.BASEPOWERPOINTS.INTVAL|</font></td>
     <td bgcolor="#000000"><font color="#FFFFFF" style="font-size:9pt"><b>&nbsp;Bonus PP</b></font></td>
     <td bgcolor="#FFFFFF" class="border" align="center"><font style="font-size:9pt">|VAR.BONUSPOWERPOINTS.INTVAL|</font></td>
     <td bgcolor="#000000"><font color="#FFFFFF" style="font-size:9pt"><b>&nbsp;Total PP</b></font></td>
     <td bgcolor="#FFFFFF" class="border" align="center"><font style="font-size:9pt">|VAR.TOTALPOWERPOINTS.INTVAL|</font></td>
    </tr>
    <tr>
     <td>&nbsp;</td>
    </tr>
   </table>
|%|
<!-- STOP PSI Power Points Table -->
<!-- START Skills Table -->
   <table cellpadding="0" cellspacing="0" border="0" width="100%" summary="Skills Table">
    <tr>
     <td height="30" bgcolor="black"></td>
     <td height="30" bgcolor="black" align="center"><font style="font-size: 9pt" color="white"><b>SKILLS</b></font></td>
     <td colspan="4" height="30" bgcolor="black" align="center"></td>
     <td height="30" bgcolor="black" align="right" ></td>
     <td height="30" bgcolor="black" align="center"><font style="font-size: 7pt" color="white" >MAX<br />RANKS</font></td>
     <td colspan="4" height="30"  bgcolor="white" align="center" class="skl"><b>|MAXSKILLLEVEL|/|MAXCCSKILLLEVEL|</b></td>
    </tr>
    <tr>
     <td colspan="2" align="center" width="40%" class="border4">SKILL NAME</td>
     <td align="center" width="5%" class="border4">ABILITY</td>
     <td align="center" width="13%" colspan="1" class="border4">SKILL<br />MODIFIER</td>
     <td align="center" width="13%" colspan="2" class="border4">ABILITY<br />MODIFIER</td>
     <td align="center" width="13%" colspan="2" class="border4">RANKS</td>
     <td align="center" width="13%" colspan="2" class="border4">MISC<br />MODIFIER</td>
     <td align="center" width="13%" colspan="2" class="border4">TEMP<br />MODIFIER</td>
    </tr>
|FOR,%skill,0,COUNT[SKILLS]-1,1,0|
|OIF(EVEN:%skill,<tr bgcolor="#DDDDDD">,<tr bgcolor="white">)|
     <td align="center" ><font style="font-size: 7pt">|OIF(SKILL%skill.UNTRAINED,&#9670;,)|</font></td>
     <td align="left" class="font8">&nbsp;&nbsp;|SKILL.%skill|</td>
     <td align="center" class="font8">|SKILL.%skill.ABILITY|</td>
     <td align="center" class="borderbottom8" valign="bottom"><b><span id="skill_|%skill|">|SKILL.%skill.TOTAL|</span></b></td>
     <td align="center" valign="bottom" class="font8"><b>=</b></td>
     <td align="center" class="borderbottom8" valign="bottom"><span id="skill_|%skill|_stat">|SKILL.%skill.ABMOD|</span><br /></td>
     <td align="center" valign="bottom" class="font8"><b>+</b></td>
     <td align="center" class="borderbottom8" valign="bottom">|SKILL.%skill.RANK|<br /></td>
     <td align="center" valign="bottom" class="font8"><b>+</b></td>
     <td align="center" class="borderbottom8" valign="bottom"><span id="skill_|%skill|_misc">|SKILL.%skill.MISC|</span><br /></td>
     <td align="center" valign="bottom" class="font8"><b>+</b></td>
     <td align="center" class="borderbottom8" valign="bottom"><span id="skill_|%skill|_temp"></span><br /></td>
    </tr>
|ENDFOR|
   </table>
   <font style="font-size: 6pt">&#9670;</font><font face="Arial" style="font-size: 8pt">= Useable Untrained</font>
   <font style="font-size:2pt"><br /></font>
<!-- STOP Skills Table -->

<!-- START Armor Table -->
|FOR.0,COUNT[EQTYPE.Armor],1,<tr><td align="center" height="20" bgcolor="black" rowspan="2" width="40%"><font style="font-size:10pt" color="white"><b>\ARMOR.EQUIPPED.%.NAME\<br /></b></font></td><td align="center" bgcolor="black" width="20%" height="15"><font style="font-size:6pt" color="white"><b>TYPE</b></font></td><td align="center" bgcolor="black" width="20%" height="15"><font style="font-size:6pt" color="white"><b>ARMOR BONUS</b></font></td><td align="center" bgcolor="black" width="20%" height="15"><font style="font-size:6pt" color="white"><b>MAX DEX BONUS</b></font></td></tr><tr><td align="center" bgcolor="white" class="border8"><b>\ARMOR.EQUIPPED.%.TYPE\<br /></b></td><td align="center" bgcolor="white" class="border8"><b>\ARMOR.EQUIPPED.%.TOTALAC\<br /></b></td><td align="center" bgcolor="white" class="border8"><b>\ARMOR.EQUIPPED.%.MAXDEX\<br /></b></td></tr></table><table cellpadding="0" cellspacing="0" border="0" width="100%" summary="Armor Table"><tr><td align="center" height="15" bgcolor="black" width="60"><font style="font-size:5pt" color="white"><b>CHECK PENALTY</b></font></td><td align="center" bgcolor="black" width="60" height="15"><font style="font-size:5pt" color="white"><b>SPELL FAILURE</b></font></td><td align="center" bgcolor="black" width="237" height="15"><font style="font-size:6pt" color="white"><b>SPECIAL PROPERTIES</b></font></td></tr><tr><td align="center" bgcolor="white" class="border8"><b>\ARMOR.EQUIPPED.%.ACCHECK\<br /></b></td><td align="center" bgcolor="white" class="border8"><b>\ARMOR.EQUIPPED.%.SPELLFAIL\<br /></b></td><td align="center" bgcolor="white" class="border8"><b>\ARMOR.EQUIPPED.%.SPROP\<br /></b></td></tr>,<table cellpadding="0" cellspacing="0" width="100%" border="0" summary="Armor Table">,</table>,1|
|%|
   <font style="font-size:2pt"><br /></font>
<!-- STOP Armor Table -->

<!-- START Special Attacks Table -->
|IIF(count("ABILITIES";"CATEGORY=Special Ability";"TYPE=SpecialAttack";"VISIBILITY=DEFAULT[or]VISIBILITY=OUTPUT_ONLY")>0)|
   <table width="100%" cellspacing="0" cellpadding="2" summary="Special Attacks Table">
    <tr>
     <td bgcolor="black" align="center"><font color="white" style="font-size: 9pt"><b>SPECIAL ATTACKS</b></font></td>
    </tr>
|FOR,%specialAttack,0,count("ABILITIES","CATEGORY=Special Ability","TYPE=SpecialAttack","VISIBILITY=DEFAULT[or]VISIBILITY=OUTPUT_ONLY")-1,1,0|
|OIF(EVEN:%specialAttack,<tr bgcolor="#DDDDDD">,<tr bgcolor="white">)|
     <td valign="top" class="font8"><b>|ABILITYALL.Special Ability.VISIBLE.%specialAttack.TYPE=SpecialAttack|
|IIF(ABILITYALL.Special Ability.VISIBLE.%specialAttack.TYPE=SpecialAttack.TYPE:Extraordinary)|
 (Ex)
|ENDIF|
|IIF(ABILITYALL.Special Ability.VISIBLE.%specialAttack.TYPE=SpecialAttack.TYPE:Supernatural)|
 (Su)
|ENDIF|
|IIF(ABILITYALL.Special Ability.VISIBLE.%specialAttack.TYPE=SpecialAttack.TYPE:SpellLike)|
 (Sp)
|ENDIF|
|IIF(ABILITYALL.Special Ability.VISIBLE.%specialAttack.TYPE=SpecialAttack.TYPE:PsiLike)|
 (Ps)
|ENDIF|
</b>
|ABILITYALL.Special Ability.VISIBLE.%specialAttack.TYPE=SpecialAttack.DESC|</td>
    </tr>
|ENDFOR|
   </table>
|ENDIF|
<!-- STOP Special Attacks Table -->
<!-- START Special Qualities Table -->
|IIF(count("ABILITIES";"CATEGORY=Special Ability";"TYPE=SpecialQuality";"VISIBILITY=DEFAULT[or]VISIBILITY=OUTPUT_ONLY")>0)|
   <table width="100%" cellspacing="0" cellpadding="2" summary="Special Qualities Table">
    <tr>
     <td bgcolor="black" align="center"><font color="white" style="font-size: 9pt"><b>SPECIAL QUALITIES</b></font></td>
    </tr>
|FOR,%specialQuality,0,count("ABILITIES","CATEGORY=Special Ability","TYPE=SpecialQuality","VISIBILITY=DEFAULT[or]VISIBILITY=OUTPUT_ONLY")-1,1,0|
|OIF(EVEN:%specialQuality,<tr bgcolor="#DDDDDD">,<tr bgcolor="white">)|
     <td valign="top" class="font8"><b>|ABILITYALL.Special Ability.VISIBLE.%specialQuality.TYPE=SpecialQuality|
|IIF(ABILITYALL.Special Ability.VISIBLE.%specialQuality.TYPE=SpecialQuality.TYPE:Extraordinary)|
 (Ex)
|ENDIF|
|IIF(ABILITYALL.Special Ability.VISIBLE.%specialQuality.TYPE=SpecialQuality.TYPE:Supernatural)|
 (Su)
|ENDIF|
|IIF(ABILITYALL.Special Ability.VISIBLE.%specialQuality.TYPE=SpecialQuality.TYPE:SpellLike)|
 (Sp)
|ENDIF|
|IIF(ABILITYALL.Special Ability.VISIBLE.%specialQuality.TYPE=SpecialQuality.TYPE:PsiLike)|
 (Ps)
|ENDIF|
</b>
|ABILITYALL.Special Ability.VISIBLE.%specialQuality.TYPE=SpecialQuality.DESC|</td>
    </tr>
|ENDFOR|
   </table>
|ENDIF|
<!-- STOP Special Qualities Table -->
<!-- START Special Abilities Table -->
|%COUNT[SA]|
   <table width="100%" cellspacing="0" cellpadding="2" summary="Special Abilities Table">
    <tr>
     <td bgcolor="black" align="center" colspan="1"><font color="white" style="font-size: 9pt"><b>SPECIAL ABILITIES</b></font></td>
    </tr>
    <tr>
     <td valign="top" width="100%" class="border8">|SPECIALLIST|</td>
    </tr>
   </table>
|%|
<!-- STOP Special Abilities Table -->
<!-- START Feat Table -->
   <table width="100%" cellspacing="0" cellpadding="2" summary="Feat Table">
    <tr>
     <td bgcolor="black" align="center" colspan="2"><font color="white" style="font-size: 9pt"><b>FEATS</b></font></td>
    </tr>
    <tr>
     <td valign="top" width="40%" class="border8"><b>NAME</b></td>
     <td valign="top" width="60%" class="border8" align="left"><b>DESCRIPTION</b></td>
    </tr>
|FOR,%feat,0,COUNT[FEATSALL.VISIBLE]-1,1,0|
|OIF(EVEN:%feat,<tr bgcolor="#DDDDDD">,<tr bgcolor="white">)|
     <td valign="top" class="font8">|FEATALL.VISIBLE.%feat|</td>
     <td valign="top" align="left" class="font8">|FEATALL.VISIBLE.%feat.DESC|</td>
    </tr>
|ENDFOR|
   </table>
<!-- STOP Feat Table -->

  </td>
 </tr>
 <tr>
  <td colspan="2" valign="top">
<!-- START Saving Throws Table -->
   <table width="100%" summary="Saving Throws">
    <tr>
     <td align="center" class="font4">SAVING THROWS</td>
     <td align="center" width="25" class="font4">TOTAL</td>
     <td align="center"></td>
     <td align="center" width="25" class="font4">BASE</td>
     <td align="center"></td>
     <td align="center" width="25" class="font4">ABILITY</td>
     <td align="center"></td>
     <td align="center" width="25" class="font4">MISC</td>
     <td align="center"></td>
     <td align="center" width="25" class="font4">TEMPORARY</td>
     <td align="left" valign="top" width="75" rowspan="4" class="border4" style="padding-left: 4px"><span class="font8"><b><center>CONDITIONAL MODIFIERS</center><hr/><span id="conditional_modifiers" style="padding-top: 2px"></span></b></span></td>
    </tr>
|FOR,%checks,0,COUNT[CHECKS]-1,1,0|
    <tr>
     <td align="center" bgcolor="black"><font style="font-size:10pt" color="white"><b>|CHECK.%checks.NAME|</b></font><font style="font-size:5pt" color="white"><br />
|IIF(CHECK.%checks.NAME:Fortitude)|
Constitution
|ELSE|
|ENDIF|
|IIF(CHECK.%checks.NAME:Reflex)|
Dexterity
|ELSE|
|ENDIF|
|IIF(CHECK.%checks.NAME:Will)|
Wisdom
|ELSE|
|ENDIF|
     </font></td>
     <td align="center" class="border10"><b><span id="save_|%checks|">|CHECK.%checks.TOTAL|</span></b></td>
     <td align="center" class="font7"><b>=</b></td>
     <td align="center" class="border10"><b>|CHECK.%checks.BASE|</b></td>
     <td align="center" class="font7"><b>+</b></td>
     <td align="center" class="border10"><b><span id="save_|%checks|_stat">|CHECK.%checks.STATMOD|</span></b></td>
     <td align="center" class="font7"><b>+</b></td>
     <td align="center" class="border10"><b><span id="save_|%checks|_misc">|CHECK.%checks.MISC.NOSTAT|</span><br /></b></td>
     <td align="center" class="font7"><b>+</b></td>
     <td align="center" class="tempborder"><span id="save_|%checks|_temp"></span><br /></td>
    </tr>
|ENDFOR|
   </table>
<!-- STOP Saving Throws Table -->

<!-- START Melee and Range Attack Table -->
   <table width="100%" summary="Melee ~ Ranged Attacks">
    <tr>
     <td align="center"></td>
     <td align="center" valign="bottom" class="font4">TOTAL</td>
     <td align="center"></td>
     <td align="center" width="25" valign="bottom" class="font4">STAT</td>
     <td align="center"></td>
     <td align="center" width="25" valign="bottom" class="font4">SIZE</td>
     <td align="center"></td>
     <td align="center" width="25" valign="bottom" class="font4">MISC</td>
     <td align="center"></td>
     <td align="center" width="25" valign="bottom" class="font4">TEMP</td>
    </tr>
    <tr>
     <td align="center" bgcolor="black"><font style="font-size:10pt" color="white"><b>MELEE</b></font><font style="font-size:5pt" color="white"><br />ATTACK BONUS</font></td>
     <td align="center" class="border10"><b><span id="attack_melee">|ATTACK.MELEE.TOTAL|</span></b></td>
     <td align="center" class="font7"><br></td>
     <td align="center" class="border10"><b><span id="attack_melee_stat">|ATTACK.MELEE.STAT|</span><br/></b></td>
     <td align="center" class="font7"><b>+</b></td>
     <td align="center" class="border10"><b><span id="attack_melee_size">|ATTACK.MELEE.SIZE|</span><br/></b></td>
     <td align="center" class="font7"><b>+</b></td>
     <td align="center" class="border10"><b><span id="attack_melee_misc">|ATTACK.MELEE.MISC|</span><br /></b></td>
     <td align="center" class="font7"><b>+</b></td>
     <td align="center" class="tempborder"><span id="attack_melee_temp"></span><br /></td>
    </tr>
    <tr>
     <td align="center" bgcolor="black"><font style="font-size:10pt" color="white"><b>RANGED</b></font><font style="font-size:5pt" color="white"><br />ATTACK BONUS</font></td>
     <td align="center" class="border10"><b><span id="attack_ranged">|ATTACK.RANGED.TOTAL|</span></b></td>
     <td align="center" class="font7"><b></b></td>
     <td align="center" class="border10"><b><span id="attack_ranged_stat">|ATTACK.RANGED.STAT|</span></b></td>
     <td align="center" class="font7"><b>+</b></td>
     <td align="center" class="border10"><b><span id="attack_ranged_size">|ATTACK.RANGED.SIZE|</span><br /></b></td>
     <td align="center" class="font7"><b>+</b></td>
     <td align="center" class="border10"><b><span id="attack_ranged_misc">|ATTACK.RANGED.MISC|</span><br /></b></td>
     <td align="center" class="font7"><b>+</b></td>
     <td align="center" class="tempborder"><span id="attack_ranged_temp"></span><br /></td>
    </tr>
    <tr>
     <td align="center" bgcolor="black"><font style="font-size:10pt" color="white"><b>GRAPPLE</b></font><font style="font-size:5pt" color="white"><br />ATTACK BONUS</font></td>
     <td align="center" class="border10"><b><span id="attack_grapple">|ATTACK.GRAPPLE.TOTAL|</span></b></td>
     <td align="center" class="font7"><b></b></td>
     <td align="center" class="border10"><b><span id="attack_grapple_stat">|ATTACK.GRAPPLE.STAT|</span></b></td>
     <td align="center" class="font7"><b>+</b></td>
     <td align="center" class="border10"><b><span id="attack_grapple_size">|ATTACK.GRAPPLE.SIZE|</span><br /></b></td>
     <td align="center" class="font7"><b>+</b></td>
     <td align="center" class="border10"><b><span id="attack_grapple_misc">|ATTACK.GRAPPLE.MISC|</span><br /></b></td>
     <td align="center" class="font7"><b>+</b></td>
     <td align="center" class="tempborder"><span id="attack_grapple_temp"></span><br /></td>
    </tr>
    <tr><td></td></tr>
   </table>
<!-- STOP Melee and Range Attack Table -->

<!-- START Unarmed Attack Table -->
   <table cellpadding="0" cellspacing="0" border="0" width="100%" summary="Unarmed Attack">
    <tr>
     <td align="center" height="25" bgcolor="black" rowspan="2" width="25%"><font style="font-size:10pt" color="white"><b>UNARMED</b></font></td>
     <td align="center" bgcolor="black" height="15"><font style="font-size:6pt" color="white"><b>TOTAL ATTACK BONUS</b></font></td>
     <td align="center" bgcolor="black" width="15%" height="15"><font style="font-size:6pt" color="white"><b>DAMAGE</b></font></td>
     <td align="center" bgcolor="black" width="15%" height="15"><font style="font-size:6pt" color="white"><b>CRITICAL</b></font></td>
     <td align="center" bgcolor="black" width="15%" height="15"><font style="font-size:6pt" color="white"><b>REACH</b></font></td>
    </tr>
    <tr>
     <td align="center" bgcolor="white" class="border"><font style="font-size:8pt" color="black"><b><span id="attack_unarmed">|WEAPONH.TOTALHIT|</span><br /></b></font></td>
     <td align="center" bgcolor="white" class="border"><font style="font-size:8pt" color="black"><b><span id="attack_unarmed_damage">|WEAPONH.DAMAGE|</span><br /></b></font></td>
     <td align="center" bgcolor="white" class="border"><font style="font-size:8pt" color="black"><b>|WEAPONH.CRIT|/x|WEAPONH.MULT|<br /></b></font></td>
     <td align="center" bgcolor="white" class="border"><font style="font-size:8pt" color="black"><b>|REACH|<br /></b></font></td>
    </tr>
   </table>
   <font style="font-size:2pt"><br /></font>
<!-- STOP Unarmed Attack Table -->

<!-- START Magic Weapons Table -->
|FOR,%weap,0,COUNT[EQTYPE.Weapon],1,1|
|IIF(WEAPON.%weap.MAGICDAMAGE>0)|
|IIF(WEAPON.%weap.ISTYPE.Double.OR.WEAPON.%weap.CATEGORY:Non-Standard-Melee.OR.WEAPON.%weap.CATEGORY:NATURAL)|
   <table cellpadding="0" cellspacing="0" border="0" width="100%" summary="Weapon Overflow">
    <tr>
     <td align="center" height="15" bgcolor="black" rowspan="2" width="40%"><font style="font-size:10pt" color="white"><b>|WEAPON.%weap.NAME|<br /></b></font></td>
     <td align="center" bgcolor="black" width="20%" height="15"><font style="font-size:6pt" color="white"><b>TOTAL ATTACK BONUS</b></font></td>
     <td align="center" bgcolor="black" width="20%" height="15"><font style="font-size:6pt" color="white"><b>DAMAGE</b></font></td>
     <td align="center" bgcolor="black" width="20%" height="15"><font style="font-size:6pt" color="white"><b>CRITICAL</b></font></td>
    </tr>
    <tr>
     <td align="center" bgcolor="white" class="border8"><b>|WEAPON.%weap.TOTALHIT|<br /></b></td>
     <td align="center" bgcolor="white" class="border8"><b>|WEAPON.%weap.DAMAGE|<br /></b></td>
     <td align="center" bgcolor="white" class="border8"><b>|WEAPON.%weap.CRIT|/x|WEAPON.%weap.MULT|<br /></b></td>
    </tr>
   </table>
   <table cellpadding="0" cellspacing="0" border="0" width="100%" summary="Weapon Overflow">
    <tr>
     <td align="center" height="15" bgcolor="black" width="15%"><font style="font-size:6pt" color="white"><b>HAND</b></font></td>
     <td align="center" height="15" bgcolor="black" width="15%"><font style="font-size:6pt" color="white"><b>RANGE</b></font></td>
     <td align="center" bgcolor="black" width="15%" height="15"><font style="font-size:6pt" color="white"><b>TYPE</b></font></td>
     <td align="center" bgcolor="black" width="15%" height="15"><font style="font-size:6pt" color="white"><b>SIZE</b></font></td>
     <td align="center" bgcolor="black" width="40%" height="15"><font style="font-size:6pt" color="white"><b>SPECIAL PROPERTIES</b></font></td>
    </tr>
    <tr>
     <td align="center" bgcolor="white" class="border8"><b>|WEAPON.%weap.HAND|<br /></b></td>
     <td align="center" bgcolor="white" class="border8"><b>|WEAPON.%weap.RANGE|<br /></b></td>
     <td align="center" bgcolor="white" class="border8"><b>|WEAPON.%weap.TYPE|<br /></b></td>
     <td align="center" bgcolor="white" class="border8"><b>|WEAPON.%weap.SIZE|<br /></b></td>
     <td align="center" bgcolor="white" class="border8"><b>&nbsp;|WEAPON.%weap.SPROP|<br /></b></td>
    </tr>
   </table>
|ELSE|
|IIF(WEAPON.%weap.CATEGORY:BOTH.AND.WEAPON.%weap.CATEGORY:Ranged)|
|ELSE|
   <table cellpadding="0" cellspacing="0" border="0" width="100%" summary="Weapon Overflow">
    <tr>
     <td align="center" bgcolor="black" rowspan="2" width="40%"><font style="font-size:10pt" color="white"><b>|WEAPON.%weap.NAME|<br /></b></font></td>
     <td align="center" bgcolor="black" width="12%" height="15"><font style="font-size:6pt" color="white"><b>HAND</b></font></td>
     <td align="center" bgcolor="black" width="12%" height="15"><font style="font-size:6pt" color="white"><b>TYPE</b></font></td>
     <td align="center" bgcolor="black" width="12%" height="15"><font style="font-size:6pt" color="white"><b>SIZE</b></font></td>
     <td align="center" bgcolor="black" width="12%" height="15"><font style="font-size:6pt" color="white"><b>CRITICAL</b></font></td>
|IIF(WEAPON.%weap.CATEGORY:Melee)|
     <td align="center" bgcolor="black" width="12%" height="15"><font style="font-size:6pt" color="white"><b>REACH</b></font></td>
|ENDIF|
    </tr>
    <tr>
     <td align="center" bgcolor="white" class="border8"><b>|WEAPON.%weap.HAND|<br /></b></td>
     <td align="center" bgcolor="white" class="border8"><b>|WEAPON.%weap.TYPE|<br /></b></td>
     <td align="center" bgcolor="white" class="border8"><b>|WEAPON.%weap.SIZE|<br /></b></td>
     <td align="center" bgcolor="white" class="border8"><b>|WEAPON.%weap.CRIT|/x|WEAPON.%weap.MULT|<br /></b></td>
|IIF(WEAPON.%weap.CATEGORY:Melee)|
     <td align="center" bgcolor="white" class="border8"><b>|WEAPON.%weap.REACH||WEAPON.%weap.REACHUNIT|<br /></b></td>
|ENDIF|
    </tr>
   </table>
|ENDIF|
|IIF(WEAPON.%weap.CATEGORY:Melee)|
   <table cellpadding="0" cellspacing="0" border="0" width="100%" summary="Weapon Overflow">
    <tr>
     <td align="center" height="15" bgcolor="black" width="8%"></td>
|IIF(WEAPOND.%weap.WIELD==1)|
     <td align="center" height="15" bgcolor="black" width="17%"><font style="font-size:6pt" color="white"><b>1H-P</b></font></td>
     <td align="center" bgcolor="black" width="17%" height="15"><font style="font-size:6pt" color="white"><b>1H-O</b></font></td>
|ENDIF|
     <td align="center" bgcolor="black" width="17%" height="15"><font style="font-size:6pt" color="white"><b>2H</b></font></td>
|IIF(WEAPOND.%weap.WIELD!=2)|
     <td align="center" bgcolor="black" width="17%" height="15"><font style="font-size:6pt" color="white"><b>2W-PH</b></font></td>
     <td align="center" bgcolor="black" width="17%" height="15"><font style="font-size:6pt" color="white"><b>2W-PHL</b></font></td>
     <td align="center" bgcolor="black" width="10%" height="15"><font style="font-size:6pt" color="white"><b>2W-OH</b></font></td>
|ENDIF|
|IIF(WEAPOND.%weap.WIELD==2)|
	 <td colspan="5" bgcolor="black" width="78%"></td>
|ENDIF|
    </tr>
    <tr>
     <td align="left" bgcolor="black" class="border"><font style="font-size:8pt" color="white"><b>&nbsp;Bonus</b></font></td>
|IIF(WEAPOND.%weap.WIELD==1)|
     <td align="center" bgcolor="white" class="border7"><b><span id="attack_weapon|%weap|_basehit">|WEAPON.%weap.BASEHIT|</span><br /></b></td>
     <td align="center" bgcolor="white" class="border7"><b><span id="attack_weapon|%weap|_ohhit">|WEAPON.%weap.OHHIT|</span><br /></b></td>
|ENDIF|x
     <td align="center" bgcolor="white" class="border7"><b><span id="attack_weapon|%weap|_thhit">|WEAPON.%weap.THHIT|</span><br /></b></td>
|IIF(WEAPOND.%weap.WIELD!=2)|
     <td align="center" bgcolor="white" class="border7"><b><span id="attack_weapon|%weap|_twphith">|WEAPON.%weap.TWPHITH|</span><br /></b></td>
     <td align="center" bgcolor="white" class="border7"><b><span id="attack_weapon|%weap|_twphitl">|WEAPON.%weap.TWPHITL|</span><br /></b></td>
     <td align="center" bgcolor="white" class="border7"><b><span id="attack_weapon|%weap|_twohit">|WEAPON.%weap.TWOHIT|</span><br /></b></td>
|ENDIF|
|IIF(WEAPOND.%weap.WIELD==2)|
	 <td colspan="5"></td>
|ENDIF|
    </tr>
    <tr>
     <td align="left" bgcolor="black" class="border"><font style="font-size:8pt" color="white"><b>&nbsp;Dam</b></font></td>
|IIF(WEAPOND.%weap.WIELD==1)|
     <td align="center" bgcolor="white" class="border7"><b><span id="attack_weapon|%weap|_basedamage">|WEAPON.%weap.BASICDAMAGE|<br /></b></td>
     <td align="center" bgcolor="white" class="border7"><b><span id="attack_weapon|%weap|_ohdamage">|WEAPON.%weap.OHDAMAGE|</span><br /></b></td>
|ENDIF|
     <td align="center" bgcolor="white" class="border7"><b><span id="attack_weapon|%weap|_thdamage">|WEAPON.%weap.THDAMAGE|</span><br /></b></td>
|IIF(WEAPOND.%weap.WIELD!=2)|
     <td align="center" bgcolor="white" class="border7"><b><span id="attack_weapon|%weap|_twpdamageh">|WEAPON.%weap.BASICDAMAGE|</span><br /></b></td>
     <td align="center" bgcolor="white" class="border7"><b><span id="attack_weapon|%weap|_twpdamagel">|WEAPON.%weap.BASICDAMAGE|</span><br /></b></td>
     <td align="center" bgcolor="white" class="border7"><b><span id="attack_weapon|%weap|_twodamage">|WEAPON.%weap.OHDAMAGE|</span><br /></b></td>
|ENDIF|
|IIF(WEAPOND.%weap.WIELD==2)|
	 <td colspan="5"></td>
|ENDIF|
    </tr>
   </table>
|ENDIF|
|IIF(WEAPON.%weap.CATEGORY:Ranged)|
   <table cellpadding="0" cellspacing="0" border="0" width="100%" summary="Weapon Overflow">
    <tr>
     <td align="left" height="15" bgcolor="black" width="8%"><font style="font-size:8pt" color="white"><b>&nbsp;&nbsp;Range</b></font></td>
|FOR,%range,0,4,1,0|
     <td width="18%" align="center" bgcolor="black" class="border"><font style="font-size:8pt" color="white"><b>|WEAPON.%weap.RANGELIST.%range|'<br /></b></font></td>
|ENDFOR|
    </tr>
    <tr>
     <td align="left" bgcolor="black" class="border"><font style="font-size:8pt" color="white"><b>&nbsp;Bonus</b></font></td>
|FOR,%range1,0,4,1,0|
     <td align="center" bgcolor="white" class="border7"><b><span id="attack_weapon|%weap|_ranged|%range1|">|WEAPON.%weap.RANGELIST.%range1.TOTALHIT|</span><br /></b></td>
|ENDFOR|
    </tr>
    <tr>
     <td align="left" bgcolor="black" class="border"><font style="font-size:8pt" color="white"><b>&nbsp;Dam</b></font></td>
|FOR,%range2,0,4,1,0|
     <td align="center" bgcolor="white" class="border7"><b><span id="attack_weapon|%weap|_ranged|%range2|_damage">|WEAPON.%weap.RANGELIST.%range2.DAMAGE|</span></b></td>
|ENDFOR|
    </tr>
|IIF(WEAPON.%weap.CONTENTS:0)|
|FOR,%ammo,0,WEAPON.%weap.CONTENTS-1,1,0|
    <tr>
     <td colspan="6" align="left" height="15" bgcolor="black" width="8%"><font style="font-size:8pt" color="white"><b>&nbsp;AMMUNITION:  |WEAPON.%weap.CONTENTS.%ammo|
|IIF(WEAPON.%weap.CONTENTS.%ammo.SPROP: )|
(|WEAPON.%weap.CONTENTS.%ammo.SPROP|)
|ENDIF|
     </b></font></td>
    </tr>
    <tr>
     <td align="left" bgcolor="black" class="border" colspan="2"><font style="font-size:8pt" color="white"><b>&nbsp;Ammunition Used<br /></b></font></td>
     <td align="center" valign="bottom" bgcolor="white" class="border" colspan="5"><font style="font-size: 8pt">&#9744;&#9744;&#9744;&#9744;&#9744; &#9744;&#9744;&#9744;&#9744;&#9744; &#9744;&#9744;&#9744;&#9744;&#9744; &#9744;&#9744;&#9744;&#9744;&#9744;</font></td>
   	</tr>
|ENDFOR|
|ENDIF|
   </table>
|ENDIF|
|IIF(WEAPON.%weap.CATEGORY:BOTH.AND.WEAPON.%weap.CATEGORY:Melee)|
|ELSE|
   <table cellpadding="0" cellspacing="0" border="0" width="100%" summary="Weapon Overflow">
    <tr>
     <td align="left" bgcolor="black" class="border" style="white-space: nowrap" width="25%"><font style="font-size:8pt" color="white"><b>&nbsp;Special Properties</b></font></td>
     <td align="left" bgcolor="white" class="border8" style="white-space: nowrap"><b>&nbsp;|WEAPON.%weap.SPROP|<br /></b></td>
    </tr>
   </table>
   <font style="font-size:2pt"><br /></font>
|ENDIF|
|ENDIF|
|ENDIF|
|ENDFOR|
|%|
<!-- STOP Magic Weapons Table -->

<!-- START Weapons Table -->
|FOR,%weap,0,COUNT[EQTYPE.Weapon],1,1|
|IIF(WEAPON.%weap.MAGICDAMAGE==0)|
|IIF(WEAPON.%weap.ISTYPE.Double.OR.WEAPON.%weap.CATEGORY:Non-Standard-Melee.OR.WEAPON.%weap.CATEGORY:NATURAL)|
   <table cellpadding="0" cellspacing="0" border="0" width="100%" summary="Weapon Overflow">
    <tr>
     <td align="center" height="15" bgcolor="black" rowspan="2" width="40%"><font style="font-size:10pt" color="white"><b>|WEAPON.%weap.NAME|<br /></b></font></td>
     <td align="center" bgcolor="black" width="20%" height="15"><font style="font-size:6pt" color="white"><b>TOTAL ATTACK BONUS</b></font></td>
     <td align="center" bgcolor="black" width="20%" height="15"><font style="font-size:6pt" color="white"><b>DAMAGE</b></font></td>
     <td align="center" bgcolor="black" width="20%" height="15"><font style="font-size:6pt" color="white"><b>CRITICAL</b></font></td>
    </tr>
    <tr>
     <td align="center" bgcolor="white" class="border8"><b>|WEAPON.%weap.TOTALHIT|<br /></b></td>
     <td align="center" bgcolor="white" class="border8"><b>|WEAPON.%weap.DAMAGE|<br /></b></td>
     <td align="center" bgcolor="white" class="border8"><b>|WEAPON.%weap.CRIT|/x|WEAPON.%weap.MULT|<br /></b></td>
    </tr>
   </table>
   <table cellpadding="0" cellspacing="0" border="0" width="100%" summary="Weapon Overflow">
    <tr>
     <td align="center" height="15" bgcolor="black" width="15%"><font style="font-size:6pt" color="white"><b>HAND</b></font></td>
     <td align="center" height="15" bgcolor="black" width="15%"><font style="font-size:6pt" color="white"><b>RANGE</b></font></td>
     <td align="center" bgcolor="black" width="15%" height="15"><font style="font-size:6pt" color="white"><b>TYPE</b></font></td>
     <td align="center" bgcolor="black" width="15%" height="15"><font style="font-size:6pt" color="white"><b>SIZE</b></font></td>
     <td align="center" bgcolor="black" width="40%" height="15"><font style="font-size:6pt" color="white"><b>SPECIAL PROPERTIES</b></font></td>
    </tr>
    <tr>
     <td align="center" bgcolor="white" class="border8"><b>|WEAPON.%weap.HAND|<br /></b></td>
     <td align="center" bgcolor="white" class="border8"><b>|WEAPON.%weap.RANGE|<br /></b></td>
     <td align="center" bgcolor="white" class="border8"><b>|WEAPON.%weap.TYPE|<br /></b></td>
     <td align="center" bgcolor="white" class="border8"><b>|WEAPON.%weap.SIZE|<br /></b></td>
     <td align="center" bgcolor="white" class="border8"><b>&nbsp;|WEAPON.%weap.SPROP|<br /></b></td>
    </tr>
   </table>
|ELSE|
|IIF(WEAPON.%weap.CATEGORY:BOTH.AND.WEAPON.%weap.CATEGORY:Ranged)|
|ELSE|
   <table cellpadding="0" cellspacing="0" border="0" width="100%" summary="Weapon Overflow">
    <tr>
     <td align="center" bgcolor="black" rowspan="2" width="40%"><font style="font-size:10pt" color="white"><b>|WEAPON.%weap.NAME|<br /></b></font></td>
     <td align="center" bgcolor="black" width="12%" height="15"><font style="font-size:6pt" color="white"><b>HAND</b></font></td>
     <td align="center" bgcolor="black" width="12%" height="15"><font style="font-size:6pt" color="white"><b>TYPE</b></font></td>
     <td align="center" bgcolor="black" width="12%" height="15"><font style="font-size:6pt" color="white"><b>SIZE</b></font></td>
     <td align="center" bgcolor="black" width="12%" height="15"><font style="font-size:6pt" color="white"><b>CRITICAL</b></font></td>
|IIF(WEAPON.%weap.CATEGORY:Melee)|
     <td align="center" bgcolor="black" width="12%" height="15"><font style="font-size:6pt" color="white"><b>REACH</b></font></td>
|ENDIF|
    </tr>
    <tr>
     <td align="center" bgcolor="white" class="border8"><b>|WEAPON.%weap.HAND|<br /></b></td>
     <td align="center" bgcolor="white" class="border8"><b>|WEAPON.%weap.TYPE|<br /></b></td>
     <td align="center" bgcolor="white" class="border8"><b>|WEAPON.%weap.SIZE|<br /></b></td>
     <td align="center" bgcolor="white" class="border8"><b>|WEAPON.%weap.CRIT|/x|WEAPON.%weap.MULT|<br /></b></td>
|IIF(WEAPON.%weap.CATEGORY:Melee)|
     <td align="center" bgcolor="white" class="border8"><b>|WEAPON.%weap.REACH||WEAPON.%weap.REACHUNIT|<br /></b></td>
|ENDIF|
    </tr>
   </table>
|ENDIF|
|IIF(WEAPON.%weap.CATEGORY:Melee)|
   <table cellpadding="0" cellspacing="0" border="0" width="100%" summary="Weapon Overflow">
    <tr>
     <td align="center" height="15" bgcolor="black" width="8%"></td>
|IIF(WEAPOND.%weap.WIELD==1)|
     <td align="center" height="15" bgcolor="black" width="17%"><font style="font-size:6pt" color="white"><b>1H-P</b></font></td>
     <td align="center" bgcolor="black" width="17%" height="15"><font style="font-size:6pt" color="white"><b>1H-O</b></font></td>
|ENDIF|
     <td align="center" bgcolor="black" width="17%" height="15"><font style="font-size:6pt" color="white"><b>2H</b></font></td>
|IIF(WEAPOND.%weap.WIELD!=2)|
     <td align="center" bgcolor="black" width="17%" height="15"><font style="font-size:6pt" color="white"><b>2W-PH</b></font></td>
     <td align="center" bgcolor="black" width="17%" height="15"><font style="font-size:6pt" color="white"><b>2W-PHL</b></font></td>
     <td align="center" bgcolor="black" width="10%" height="15"><font style="font-size:6pt" color="white"><b>2W-OH</b></font></td>
|ENDIF|
|IIF(WEAPOND.%weap.WIELD==2)|
	 <td colspan="5" bgcolor="black" width="78%"></td>
|ENDIF|
    </tr>
    <tr>
     <td align="left" bgcolor="black" class="border"><font style="font-size:8pt" color="white"><b>&nbsp;Bonus</b></font></td>
|IIF(WEAPOND.%weap.WIELD==1)|
     <td align="center" bgcolor="white" class="border7"><b><span id="attack_weapon|%weap|_basehit">|WEAPON.%weap.BASEHIT|</span><br /></b></td>
     <td align="center" bgcolor="white" class="border7"><b><span id="attack_weapon|%weap|_ohhit">|WEAPON.%weap.OHHIT|</span><br /></b></td>
|ENDIF|x
     <td align="center" bgcolor="white" class="border7"><b><span id="attack_weapon|%weap|_thhit">|WEAPON.%weap.THHIT|</span><br /></b></td>
|IIF(WEAPOND.%weap.WIELD!=2)|
     <td align="center" bgcolor="white" class="border7"><b><span id="attack_weapon|%weap|_twphith">|WEAPON.%weap.TWPHITH|</span><br /></b></td>
     <td align="center" bgcolor="white" class="border7"><b><span id="attack_weapon|%weap|_twphitl">|WEAPON.%weap.TWPHITL|</span><br /></b></td>
     <td align="center" bgcolor="white" class="border7"><b><span id="attack_weapon|%weap|_twohit">|WEAPON.%weap.TWOHIT|</span><br /></b></td>
|ENDIF|
|IIF(WEAPOND.%weap.WIELD==2)|
	 <td colspan="5"></td>
|ENDIF|
    </tr>
    <tr>
     <td align="left" bgcolor="black" class="border"><font style="font-size:8pt" color="white"><b>&nbsp;Dam</b></font></td>
|IIF(WEAPOND.%weap.WIELD==1)|
     <td align="center" bgcolor="white" class="border7"><b><span id="attack_weapon|%weap|_basedamage">|WEAPON.%weap.BASICDAMAGE|<br /></b></td>
     <td align="center" bgcolor="white" class="border7"><b><span id="attack_weapon|%weap|_ohdamage">|WEAPON.%weap.OHDAMAGE|</span><br /></b></td>
|ENDIF|
     <td align="center" bgcolor="white" class="border7"><b><span id="attack_weapon|%weap|_thdamage">|WEAPON.%weap.THDAMAGE|</span><br /></b></td>
|IIF(WEAPOND.%weap.WIELD!=2)|
     <td align="center" bgcolor="white" class="border7"><b><span id="attack_weapon|%weap|_twpdamageh">|WEAPON.%weap.BASICDAMAGE|</span><br /></b></td>
     <td align="center" bgcolor="white" class="border7"><b><span id="attack_weapon|%weap|_twpdamagel">|WEAPON.%weap.BASICDAMAGE|</span><br /></b></td>
     <td align="center" bgcolor="white" class="border7"><b><span id="attack_weapon|%weap|_twodamage">|WEAPON.%weap.OHDAMAGE|</span><br /></b></td>
|ENDIF|
|IIF(WEAPOND.%weap.WIELD==2)|
	 <td colspan="5"></td>
|ENDIF|
    </tr>
   </table>
|ENDIF|
|IIF(WEAPON.%weap.CATEGORY:Ranged)|
   <table cellpadding="0" cellspacing="0" border="0" width="100%" summary="Weapon Overflow">
    <tr>
     <td align="left" height="15" bgcolor="black" width="8%"><font style="font-size:8pt" color="white"><b>&nbsp;&nbsp;Range</b></font></td>
|FOR,%range,0,4,1,0|
     <td width="18%" align="center" bgcolor="black" class="border"><font style="font-size:8pt" color="white"><b>|WEAPON.%weap.RANGELIST.%range|'<br /></b></font></td>
|ENDFOR|
    </tr>
    <tr>
     <td align="left" bgcolor="black" class="border"><font style="font-size:8pt" color="white"><b>&nbsp;Bonus</b></font></td>
|FOR,%range1,0,4,1,0|
     <td align="center" bgcolor="white" class="border7"><b><span id="attack_weapon|%weap|_ranged|%range1|">|WEAPON.%weap.RANGELIST.%range1.TOTALHIT|</span><br /></b></td>
|ENDFOR|
    </tr>
    <tr>
     <td align="left" bgcolor="black" class="border"><font style="font-size:8pt" color="white"><b>&nbsp;Dam</b></font></td>
|FOR,%range2,0,4,1,0|
     <td align="center" bgcolor="white" class="border7"><b><span id="attack_weapon|%weap|_ranged|%range2|_damage">|WEAPON.%weap.RANGELIST.%range2.DAMAGE|</span></b></td>
|ENDFOR|
    </tr>
|IIF(WEAPON.%weap.CONTENTS:0)|
|FOR,%ammo,0,WEAPON.%weap.CONTENTS-1,1,0|
    <tr>
     <td colspan="6" align="left" height="15" bgcolor="black" width="8%"><font style="font-size:8pt" color="white"><b>&nbsp;AMMUNITION:  |WEAPON.%weap.CONTENTS.%ammo|
|IIF(WEAPON.%weap.CONTENTS.%ammo.SPROP: )|
(|WEAPON.%weap.CONTENTS.%ammo.SPROP|)
|ENDIF|
     </b></font></td>
    </tr>
    <tr>
     <td align="left" bgcolor="black" class="border" colspan="2"><font style="font-size:8pt" color="white"><b>&nbsp;Ammunition Used<br /></b></font></td>
     <td align="center" valign="bottom" bgcolor="white" class="border" colspan="5"><font style="font-size: 8pt">&#9744;&#9744;&#9744;&#9744;&#9744; &#9744;&#9744;&#9744;&#9744;&#9744; &#9744;&#9744;&#9744;&#9744;&#9744; &#9744;&#9744;&#9744;&#9744;&#9744;</font></td>
   	</tr>
|ENDFOR|
|ENDIF|
   </table>
|ENDIF|
|IIF(WEAPON.%weap.CATEGORY:BOTH.AND.WEAPON.%weap.CATEGORY:Melee)|
|ELSE|
   <table cellpadding="0" cellspacing="0" border="0" width="100%" summary="Weapon Overflow">
    <tr>
     <td align="left" bgcolor="black" class="border" style="white-space: nowrap" width="25%"><font style="font-size:8pt" color="white"><b>&nbsp;Special Properties</b></font></td>
     <td align="left" bgcolor="white" class="border8" style="white-space: nowrap"><b>&nbsp;|WEAPON.%weap.SPROP|<br /></b></td>
    </tr>
   </table>
   <font style="font-size:2pt"><br /></font>
|ENDIF|
|ENDIF|
|ENDIF|
|ENDFOR|
|%|
<!-- STOP Weapons Table -->

   <table cellpadding="0" width="100%" cellspacing="0" border="0" summary="Weapon Abbreviations">
    <tr>
     <td><font style="font-size:5pt"><b>1H-P:</b> One handed, primary hand.&nbsp;<b>1H-O:</b> One handed, off hand.&nbsp;<b>2H:</b> Two handed.&nbsp;<b>2W-PH:</b> 2 weapons, primary hand.&nbsp;<b>2W-PHL:</b> 2 weapons, primary hand, off hand weapon is light.&nbsp;<b>2W-OH:</b>2 weapons, off hand.</font></td>
    </tr>
   </table>

</tr>
</table>
<hr /><center><font style="font-size: 7pt">PCGen Character Template by ROG, mods/maint by Arcady, Barak &amp; Dimrill.  For suggestions please post to pcgen@yahoogroups.com with "OS Suggestion" in the subject line.</font></center>
<!-- ================================================================ -->
<br style="page-break-after: always" />

<table width="100%" border="0" summary="Page 2 Master Table"> <!-- Master Page Table -->
 <tr>
  <td colspan="2" width="100%" valign="top">
<!-- START Equipment Table -->
   <table width="100%" cellspacing="0" cellpadding="0" border="0" summary="Master Equipment Table"> <!-- Master Equipment Table -->
    <tr>
     <td bgcolor="black" align="center" colspan="10"><font color="white" style="font-size: 9pt"><b>EQUIPMENT</b></font></td>
    </tr>
    <tr>
     <td width="50%" valign="top">
      <table width="100%" cellspacing="0" cellpadding="0" border="0" summary="Equipment Table Left Column"> <!-- Equipment Table left pane -->
       <tr>
        <td valign="top" width="70%" class="border8"><b>ITEM</b></td>
        <td valign="top" width="12%" class="border8" align="center"><b>LOCATION</b></td>
        <td valign="top" width="6%" class="border8" align="center"><b>QTY</b></td>
        <td valign="top" width="6%" class="border8" align="center"><b>WT.</b></td>
        <td valign="top" width="6%" class="border8" align="center"><b>COST</b></td>
       </tr>
|FOR,%equip1,0,(COUNT[EQUIPMENT.Not.Coin.NOT.Gem]-1)/2,1,0|
|OIF(EVEN:%equip1,<tr bgcolor="#DDDDDD">,<tr bgcolor="white">)|
        <td valign="top" class="border8">&nbsp;|EQ.Not.Coin.NOT.Gem.%equip1.NAME.MAGIC~<b>~</b>|<br />
|IIF(EQ.Not.Coin.NOT.Gem.%equip1.CONTENTS: )|
        <font style="font-size: 7pt">(|EQ.Not.Coin.NOT.Gem.%equip1.CONTENTS|)</font>
|ENDIF|
|IIF(EQ.Not.Coin.NOT.Gem.%equip1.SPROP: )|
        <font style="font-size: 7pt">Special Properties: (|EQ.Not.Coin.NOT.Gem.%equip1.SPROP|)</font>
|ENDIF|
|IIF(EQ.MERGELOC.Not.Coin.NOT.Gem.%equip1.NOTE: )|
        <span class="lt5">(|EQ.MERGELOC.Not.Coin.NOT.Gem.%equip1.NOTE|)</span><br />
|ENDIF|
|FOR,%charges,1,EQ.MERGELOC.Not.Coin.NOT.Gem.%equip1.CHARGES,1,0|
        <font style="font-size: 7pt">&#9744;</font>
|ENDFOR|
|IIF(EQ.MERGELOC.Not.Coin.NOT.Gem.%equip1.TYPE:Consumable)|
|FOR,%consumable,1,EQ.%equip1.CHECKBOXES,1,0|
        <font style="font-size: 7pt">&#9744;</font>
|ENDFOR|
|ELSE|
|IIF(EQ.MERGELOC.Not.Coin.NOT.Gem.%equip1.TYPE:Potion)|
|FOR,%consumable,1,EQ.%equip1.CHECKBOXES,1,0|
        <font style="font-size: 7pt">&#9744;</font>
|ENDFOR|
|ELSE|
|IIF(EQ.MERGELOC.Not.Coin.NOT.Gem.%equip1.TYPE:Ammunition)|
|FOR,%consumable,1,EQ.%equip1.CHECKBOXES,1,0|
        <font style="font-size: 7pt">&#9744;</font>
|ENDFOR|
|ELSE|
|ENDIF|
|ENDIF|
|ENDIF|
        </td>
        <td valign="top" class="border8" align="center">|EQ.Not.Coin.NOT.Gem.%equip1.LOCATION|<br /></td>
        <td valign="top" class="border8" align="center">|EQ.Not.Coin.NOT.Gem.%equip1.QTY|<br /></td>
        <td valign="top" class="border8" align="center">|EQ.Not.Coin.NOT.Gem.%equip1.WT|<br /></td>
        <td valign="top" class="border8" align="center">|EQ.Not.Coin.NOT.Gem.%equip1.COST|<br /></td>
       </tr>
|ENDFOR|
      </table>
     </td>
     <td width="50%" valign="top">
      <table width="100%" cellspacing="0" cellpadding="0" border="0" summary="Equipment Table Left Column"> <!-- Equipment Table right pane -->
       <tr>
        <td valign="top" width="70%" class="border8"><b>ITEM</b></td>
        <td valign="top" width="12%" class="border8" align="center"><b>LOCATION</b></td>
        <td valign="top" width="6%" class="border8" align="center"><b>QTY</b></td>
        <td valign="top" width="6%" class="border8" align="center"><b>WT.</b></td>
        <td valign="top" width="6%" class="border8" align="center"><b>COST</b></td>
       </tr>
|FOR,%equip2,((COUNT[EQUIPMENT.Not.Coin.NOT.Gem]-1)/2)+1,COUNT[EQUIPMENT.Not.Coin.NOT.Gem]-1,1,0|
|OIF(EVEN:%equip2,<tr bgcolor="#DDDDDD">,<tr bgcolor="white">)|
        <td valign="top" class="border8">&nbsp;|EQ.Not.Coin.NOT.Gem.%equip2.NAME.MAGIC~<b>~</b>|<br />
|IIF(EQ.Not.Coin.NOT.Gem.%equip2.SPROP: )|
        <font style="font-size: 5pt">(|EQ.Not.Coin.NOT.Gem.%equip2.SPROP|)</font>
|ENDIF|
|IIF(EQ.MERGELOC.Not.Coin.NOT.Gem.%equip2.NOTE: )|
        <span class="lt5">(|EQ.MERGELOC.Not.Coin.NOT.Gem.%equip2.NOTE|)</span><br />
|ENDIF|
|FOR,%charges,1,EQ.MERGELOC.Not.Coin.NOT.Gem.%equip2.CHARGES,1,0|
        <font style="font-size: 7pt">&#9744;</font>
|ENDFOR|
|IIF(EQ.MERGELOC.Not.Coin.NOT.Gem.%equip2.TYPE:Consumable)|
|FOR,%consumable,1,EQ.MERGELOC.Not.Coin.NOT.Gem.%equip2.CHECKBOXES,1,0|
        <font style="font-size: 7pt">&#9744;</font>
|ENDFOR|
|ELSE|
|IIF(EQ.MERGELOC.Not.Coin.NOT.Gem.%equip2.TYPE:Potion)|
|FOR,%consumable,1,EQ.MERGELOC.Not.Coin.NOT.Gem.%equip2.CHECKBOXES,1,0|
        <font style="font-size: 7pt">&#9744;</font>
|ENDFOR|
|ELSE|
|IIF(EQ.MERGELOC.Not.Coin.NOT.Gem.%equip2.TYPE:Ammunition)|
|FOR,%consumable,1,EQ.MERGELOC.Not.Coin.NOT.Gem.%equip2.CHECKBOXES,1,0|
        <font style="font-size: 7pt">&#9744;</font>
|ENDFOR|
|ELSE|
|ENDIF|
|ENDIF|
|ENDIF|
        </td>
        <td valign="top" class="border8" align="center">|EQ.Not.Coin.NOT.Gem.%equip2.LOCATION|<br /></td>
        <td valign="top" class="border8" align="center">|EQ.Not.Coin.NOT.Gem.%equip2.QTY|<br /></td>
        <td valign="top" class="border8" align="center">|EQ.Not.Coin.NOT.Gem.%equip2.WT|<br /></td>
        <td valign="top" class="border8" align="center">|EQ.Not.Coin.NOT.Gem.%equip2.COST|<br /></td>
       </tr>
|ENDFOR|
       <tr>
        <td valign="top" width="41%" class="border" align="right" colspan="1"><font style="font-size: 8pt">TOTAL WEIGHT CARRIED/VALUE&nbsp;&nbsp;</font></td>
        <td valign="top" width="3%" class="border" align="center" colspan="2" nowrap><font style="font-size: 8pt">|TOTAL.WEIGHT|</font></td>
        <td valign="top" width="3%" class="border" align="center" colspan="2" nowrap><font style="font-size: 8pt">|TOTAL.VALUE|</font></td>
       </tr>
      </table>
     </td>
    </tr>
   </table>
<!-- STOP Equipment Table -->
   </td>
  </tr>
  <tr>
   <td width="50%" valign="top">
<!-- START Weight Table -->
    <table width="100%" cellspacing="0" cellpadding="3" summary="Weight Allowance Table">
     <tr>
      <td bgcolor="black" align="center" colspan="6"><font color="white" style="font-size: 9pt"><b>WEIGHT ALLOWANCE</b></font></td>
     </tr>
     <tr>
      <td valign="top" class="border8" align="right"><b>Light</b></td>
      <td valign="top" class="border8">|WEIGHT.LIGHT|</td>
      <td valign="top" class="border8" align="right"><b>Medium</b></td>
      <td valign="top" class="border8">|WEIGHT.MEDIUM|</td>
      <td valign="top" class="border8" align="right"><b>Heavy</b></td>
      <td valign="top" class="border8">|WEIGHT.HEAVY|</td>
     </tr>
    </table>
<!-- STOP Weight Table -->
<!-- START Illumination Table -->
|IIF(VAR.IF(var("COUNT[EQTYPE.LightSource]")>0;1;0):1)|
<br/>
    <table width="100%" cellspacing="0" cellpadding="3" summary="Illumination">
     <tr>
      <td bgcolor="black" align="center" colspan="4"><font color="white" style="font-size: 9pt"><b>ILLUMINATION</b></font></td>
     </tr>
     <tr>
      	<td width="45%" class="border8"><b>Light Source</b></td>
      	<td width="15%" class="border8"><b>Bright</b></td>
       	<td width="15%" class="border8"><b>Shadowy</b></td>
     	<td width="15%" class="border8"><b>Duration</b></td>
     </tr>
|FOR,%light,0,COUNT[EQTYPE.LightSource]-1,1,0|
|OIF(EVEN:%light,<tr bgcolor="#DDDDDD">,<tr bgcolor="white">)|
      	<td class="border8">|EQTYPE.LightSource.%light.NAME|</td>
      	<td class="border8">|EQTYPE.LightSource.%light.QUALITY.Bright Illumination|</td>
       	<td class="border8">|EQTYPE.LightSource.%light.QUALITY.Shadowy Illumination|</td>
     	<td class="border8">|EQTYPE.LightSource.%light.QUALITY.Duration|</td>
     </tr>
|ENDFOR|
    </table>
|ENDIF|
<!-- STOP Illumination Table -->
<!-- START Money Table -->
<br />
    <table width="100%" cellspacing="0" cellpadding="3" summary="Money">
     <tr>
      <td bgcolor="black" align="center" colspan="1"><font color="white" style="font-size: 9pt"><b>MONEY</b></font></td>
     </tr>
     <tr>
      <td valign="top" width="70%" class="border"><font style="font-size: 8pt">
|FOR.0,COUNT[EQTYPE.MERGELOC.Coin],1,\EQTYPE.MERGELOC.Coin.%.NAME\: \EQTYPE.MERGELOC.Coin.%.QTY\ [\EQTYPE.MERGELOC.Coin.%.LOCATION\], ,<br/>,1|
|FOR.0,COUNT[EQTYPE.MERGELOC.Gem],1,\EQTYPE.MERGELOC.Gem.%.NAME\: \EQTYPE.MERGELOC.Gem.%.QTY\ [\EQTYPE.MERGELOC.Gem.%.LOCATION\], ,<br/>,1|
<span class="notes">|MISC.FUNDS|</span></font></td>
     </tr>
    </table>
<!-- STOP Money Table -->
    <font style="font-size:2pt"><br /></font>
<!-- START Companions Tables -->
|%FOLLOWERTYPE.Familiar|
    <table cellpadding="0" cellspacing="0" border="0" width="100%" summary="Familiar Table">
     <tr>
      <td bgcolor="black" align="left" class="border" colspan="12"><font color="white" style="font-size: 11pt"><b>Familiar: |FOLLOWERTYPE.FAMILIAR.0.NAME| (|FOLLOWERTYPE.FAMILIAR.0.RACE|)</b></font></td>
     </tr>
     <tr>
      <td width="8%" bgcolor="black" align="center" class="border"><font color="white" style="font-size: 8pt"><b>FORT:</b></font></td>
      <td width="8%" align="center" class="border">|FOLLOWERTYPE.FAMILIAR.0.CHECK.FORTITUDE.TOTAL|</td>
      <td width="8%" bgcolor="black" align="center" class="border"><font color="white" style="font-size: 8pt"><b>REF:</b></font></td>
      <td width="8%" align="center" class="border">|FOLLOWERTYPE.FAMILIAR.0.CHECK.REFLEX.TOTAL|</td>
      <td width="8%" bgcolor="black" align="center" class="border"><font color="white" style="font-size: 8pt"><b>WILL:</b></font></td>
      <td width="8%" align="center" class="border">|FOLLOWERTYPE.FAMILIAR.0.CHECK.2.TOTAL|</td>
      <td width="8%" bgcolor="black" align="center" class="border"><font color="white" style="font-size: 8pt"><b>HP:</b></font></td>
      <td width="8%" align="center" class="border">|FOLLOWERTYPE.FAMILIAR.0.HP|</td>
      <td width="8%" bgcolor="black" align="center" class="border" ><font color="white" style="font-size: 8pt"><b>AC:</b></font></td>
      <td width="8%" align="center" class="border" >|FOLLOWERTYPE.FAMILIAR.0.AC.Total|</td>
      <td width="8%" bgcolor="black" align="center" class="border"><font color="white" style="font-size: 8pt"><b>INIT:</b></font></td>
      <td width="8%" align="center" class="border">|FOLLOWERTYPE.FAMILIAR.0.INITIATIVEMOD|</td>
     </tr>
|FOR,%wep,0,COUNT[FOLLOWERTYPE.FAMILIAR.0.EQTYPE.WEAPON]-1,1,1|
     <tr>
      <td colspan="2" bgcolor="black" align="center" class="border"><font color="white" style="font-size: 10pt"><b>|FOLLOWERTYPE.FAMILIAR.0.WEAPON.%wep.NAME|</b></font></td>
      <td colspan="2" align="center" class="border">|FOLLOWERTYPE.FAMILIAR.0.WEAPON.%wep.TOTALHIT|</td>
      <td colspan="2" bgcolor="black" align="center" class="border"><font color="white" style="font-size: 9pt"><b>DAMAGE:</b></font></td>
      <td colspan="2" align="center" class="border">|FOLLOWERTYPE.FAMILIAR.0.WEAPON.%wep.DAMAGE|</td>
      <td colspan="2" bgcolor="black" align="center" class="border"><font color="white" style="font-size: 9pt"><b>CRITICAL:</b></font></td>
      <td colspan="2" align="center" class="border">|FOLLOWERTYPE.FAMILIAR.0.WEAPON.%wep.CRIT|/x|FOLLOWERTYPE.FAMILIAR.0.WEAPON.%wep.MULT|</td>
      </tr>
|ENDFOR|
     <tr>
      <td bgcolor="black" align="center" class="border"><font color="white" style="font-size: 9pt"><b>Special:</b></font></td>
      <td align="left" class="border" colspan="12"><font style="font-size: 9pt">&nbsp;&nbsp;|FOLLOWERTYPE.FAMILIAR.0.SPECIALLIST|</font></td>
     </tr>
     <tr>
     </tr>
    </table>
   <font style="font-size:2pt"><br /></font>
|%|
|%FOLLOWERTYPE.SPECIAL MOUNT|
    <table cellpadding="0" cellspacing="0" border="0" width="100%" summary="Special Mount Table">
     <tr>
      <td bgcolor="black" align="left" class="border" colspan="12"><font color="white" style="font-size: 11pt"><b>Special Mount: |FOLLOWERTYPE.SPECIAL MOUNT.0.NAME| (|FOLLOWERTYPE.SPECIAL MOUNT.0.RACE|)</b></font></td>
     </tr>
     <tr>
      <td width="8%" bgcolor="black" align="center" class="border"><font color="white" style="font-size: 8pt"><b>FORT:</b></font></td>
      <td width="8%" align="center" class="border">|FOLLOWERTYPE.SPECIAL MOUNT.0.CHECK.FORTITUDE.TOTAL|</td>
      <td width="8%" bgcolor="black" align="center" class="border"><font color="white" style="font-size: 8pt"><b>REF:</b></font></td>
      <td width="8%" align="center" class="border">|FOLLOWERTYPE.SPECIAL MOUNT.0.CHECK.REFLEX.TOTAL|</td>
      <td width="8%" bgcolor="black" align="center" class="border"><font color="white" style="font-size: 8pt"><b>WILL:</b></font></td>
      <td width="8%" align="center" class="border">|FOLLOWERTYPE.SPECIAL MOUNT.0.CHECK.2.TOTAL|</td>
      <td width="8%" bgcolor="black" align="center" class="border"><font color="white" style="font-size: 8pt"><b>HP:</b></font></td>
      <td width="8%" align="center" class="border">|FOLLOWERTYPE.SPECIAL MOUNT.0.HP|</td>
      <td width="8%" bgcolor="black" align="center" class="border" ><font color="white" style="font-size: 8pt"><b>AC:</b></font></td>
      <td width="8%" align="center" class="border" >|FOLLOWERTYPE.SPECIAL MOUNT.0.AC.Total|</td>
      <td width="8%" bgcolor="black" align="center" class="border"><font color="white" style="font-size: 8pt"><b>INIT:</b></font></td>
      <td width="8%" align="center" class="border">|FOLLOWERTYPE.SPECIAL MOUNT.0.INITIATIVEMOD|</td>
     </tr>
|FOR,%wep,0,COUNT[FOLLOWERTYPE.SPECIAL MOUNT.0.EQTYPE.WEAPON]-1,1,1|
     <tr>
      <td colspan="2" bgcolor="black" align="center" class="border"><font color="white" style="font-size: 10pt"><b>|FOLLOWERTYPE.SPECIAL MOUNT.0.WEAPON.%wep.NAME|</b></font></td>
      <td colspan="2" align="center" class="border">|FOLLOWERTYPE.SPECIAL MOUNT.0.WEAPON.%wep.TOTALHIT|</td>
      <td colspan="2" bgcolor="black" align="center" class="border"><font color="white" style="font-size: 9pt"><b>DAMAGE:</b></font></td>
      <td colspan="2" align="center" class="border">|FOLLOWERTYPE.SPECIAL MOUNT.0.WEAPON.%wep.DAMAGE|</td>
      <td colspan="2" bgcolor="black" align="center" class="border"><font color="white" style="font-size: 9pt"><b>CRITICAL:</b></font></td>
      <td colspan="2" align="center" class="border">|FOLLOWERTYPE.SPECIAL MOUNT.0.WEAPON.%wep.CRIT|/x|FOLLOWERTYPE.SPECIAL MOUNT.0.WEAPON.%wep.MULT|</td>
      </tr>
|ENDFOR|
     <tr>
      <td bgcolor="black" align="center" class="border"><font color="white" style="font-size: 9pt"><b>Special:</b></font></td>
      <td align="left" class="border" colspan="12"><font style="font-size: 9pt">&nbsp;&nbsp;|FOLLOWERTYPE.SPECIAL MOUNT.0.SPECIALLIST|</font></td>
     </tr>
     <tr>
     </tr>
    </table>
   <font style="font-size:2pt"><br /></font>
|%|
|%FOLLOWERTYPE.ANIMAL COMPANION|
|FOR,%anm,0,COUNT[FOLLOWERTYPE.ANIMAL COMPANION]-1,1,0|
    <table cellpadding="0" cellspacing="0" border="0" width="100%" summary="Animal Companion Table">
     <tr>
      <td bgcolor="black" align="left" class="border" colspan="12"><font color="white" style="font-size: 11pt"><b>Animal Companion: |FOLLOWERTYPE.ANIMAL COMPANION.%anm.NAME| (|FOLLOWERTYPE.ANIMAL COMPANION.%anm.RACE|)</b></font></td>
     </tr>
     <tr>
      <td width="8%" bgcolor="black" align="center" class="border"><font color="white" style="font-size: 8pt"><b>FORT:</b></font></td>
      <td width="8%" align="center" class="border">|FOLLOWERTYPE.ANIMAL COMPANION.%anm.CHECK.FORTITUDE.TOTAL|</td>
      <td width="8%" bgcolor="black" align="center" class="border"><font color="white" style="font-size: 8pt"><b>REF:</b></font></td>
      <td width="8%" align="center" class="border">|FOLLOWERTYPE.ANIMAL COMPANION.%anm.CHECK.REFLEX.TOTAL|</td>
      <td width="8%" bgcolor="black" align="center" class="border"><font color="white" style="font-size: 8pt"><b>WILL:</b></font></td>
      <td width="8%" align="center" class="border">|FOLLOWERTYPE.ANIMAL COMPANION.%anm.CHECK.2.TOTAL|</td>
      <td width="8%" bgcolor="black" align="center" class="border"><font color="white" style="font-size: 8pt"><b>HP:</b></font></td>
      <td width="8%" align="center" class="border">|FOLLOWERTYPE.ANIMAL COMPANION.%anm.HP|</td>
      <td width="8%" bgcolor="black" align="center" class="border" ><font color="white" style="font-size: 8pt"><b>AC:</b></font></td>
      <td width="8%" align="center" class="border" >|FOLLOWERTYPE.ANIMAL COMPANION.%anm.AC.Total|</td>
      <td width="8%" bgcolor="black" align="center" class="border"><font color="white" style="font-size: 8pt"><b>INIT:</b></font></td>
      <td width="8%" align="center" class="border">|FOLLOWERTYPE.ANIMAL COMPANION.%anm.INITIATIVEMOD|</td>
     </tr>
|FOR,%wep,0,COUNT[FOLLOWERTYPE.ANIMAL COMPANION.%anm.EQTYPE.WEAPON]-1,1,1|
     <tr>
      <td colspan="2" bgcolor="black" align="center" class="border"><font color="white" style="font-size: 10pt"><b>|FOLLOWERTYPE.ANIMAL COMPANION.%anm.WEAPON.%wep.NAME|</b></font></td>
      <td colspan="2" align="center" class="border">|FOLLOWERTYPE.ANIMAL COMPANION.%anm.WEAPON.%wep.TOTALHIT|</td>
      <td colspan="2" bgcolor="black" align="center" class="border"><font color="white" style="font-size: 9pt"><b>DAMAGE:</b></font></td>
      <td colspan="2" align="center" class="border">|FOLLOWERTYPE.ANIMAL COMPANION.%anm.WEAPON.%wep.DAMAGE|</td>
      <td colspan="2" bgcolor="black" align="center" class="border"><font color="white" style="font-size: 9pt"><b>CRITICAL:</b></font></td>
      <td colspan="2" align="center" class="border">|FOLLOWERTYPE.ANIMAL COMPANION.%anm.WEAPON.%wep.CRIT|/x|FOLLOWERTYPE.ANIMAL COMPANION.%anm.WEAPON.%wep.MULT|</td>
      </tr>
|ENDFOR|
     <tr>
      <td bgcolor="black" align="center" class="border"><font color="white" style="font-size: 9pt"><b>Special:</b></font></td>
      <td align="left" class="border" colspan="11"><font style="font-size: 9pt">&nbsp;&nbsp;|FOLLOWERTYPE.ANIMAL COMPANION.%anm.SPECIALLIST|<br /></font></td>
     </tr>
    </table>
   <font style="font-size:2pt"><br /></font>
|ENDFOR|
<!-- STOP Companions Table1 -->
|%|
|%FOLLOWERTYPE.FOLLOWERS|
    <table width="100%" cellspacing="0" cellpadding="3" summary="Henchmen Table">
     <tr>
      <td bgcolor="black" align="center" colspan="1"><font color="white" style="font-size: 9pt"><b>HENCHMEN</b></font></td>
     </tr>
     <tr>
      <td valign="top" width="70%" class="border8">
|FOR,%follower,0,COUNT[FOLLOWERTYPE.FOLLOWERS]-1,1,1|
|FOLLOWERTYPE.FOLLOWERS.%follower.NAME|,&nbsp;
|ENDFOR|
      </td>
     </tr>
    </table>
<!-- STOP Companions Table1 -->
|%|
|%MISC.COMPANIONS|
<!-- START Misc Companions Table -->
    <table width="100%" cellspacing="0" cellpadding="3" summary="Misc. Magic Table">
     <tr>
      <td bgcolor="black" align="center" colspan="1"><font color="white" style="font-size: 9pt"><b>OTHER COMPANIONS</b></font></td>
     </tr>
     <tr>
      <td valign="top" width="70%" class="border8"><span class="notes">|MISC.COMPANIONS|<span class="notes"></td>
     </tr>
    </table>
<font style="font-size:2pt"><br /></font>
<!-- STOP Misc Companions Table -->
|%|
<!-- START Template Table -->
|%TEMPLATE.0|
    <table width="100%" cellspacing="0" cellpadding="3" summary="Template Table">
     <tr>
      <td bgcolor="black" align="center" colspan="1"><font color="white" style="font-size: 9pt"><b>TEMPLATES</b></font></td>
     </tr>
     <tr>
      <td valign="top" width="70%" class="border8">|TEMPLATELIST|<br /></td>
     </tr>
    </table>
<font style="font-size:2pt"><br /></font>
|%|
<!-- STOP Template Table -->
<!-- START Salient Divine Ability Table -->
|IIF(HASVAR:DivineRank)|
    <table width="100%" cellspacing="0" cellpadding="3" summary="Template Table">
     <tr>
      <td bgcolor="black" align="center" colspan="1"><font color="white" style="font-size: 9pt"><b>SALIENT DIVINE ABILITIES</b></font></td>
     </tr>
     <tr>
      <td valign="top" width="70%" class="border8">|ABILITYLIST.Salient Divine Ability|<br /></td>
     </tr>
    </table>
<font style="font-size:2pt"><br /></font>
|ELSE|
|ENDIF|
<!-- STOP Salient Divine Ability Table -->
|%MISC.MAGIC|
<!-- START Misc Magic Table -->
    <table width="100%" cellspacing="0" cellpadding="3" summary="Misc. Magic Table">
     <tr>
      <td bgcolor="black" align="center" colspan="1"><font color="white" style="font-size: 9pt"><b>MAGIC</b></font></td>
     </tr>
     <tr>
      <td valign="top" width="70%" class="border8"><span class="notes">|MISC.MAGIC|</span></td>
     </tr>
    </table>
<font style="font-size:2pt"><br /></font>
<!-- STOP Misc Magic Table -->
|%|
|%PROHIBITEDLIST|
<!-- START Prohibited Table -->
    <table width="100%" cellspacing="0" cellpadding="3" summary="Prohiubited List">
     <tr>
      <td bgcolor="black" align="center" colspan="1"><font color="white" style="font-size: 9pt"><b>PROHIBITED</b></font></td>
     </tr>
     <tr>
      <td valign="top" width="100%" class="border8">|PROHIBITEDLIST|<br /></td>
     </tr>
    </table>
<font style="font-size:2pt"><br /></font>
<!-- STOP Prohibited Table -->
|%|
|%DOMAIN.1|
<!-- START Domain Table -->
    <table width="100%" cellspacing="0" cellpadding="3" summary="Domain List">
     <tr>
      <td bgcolor="black" align="center" colspan="2"><font color="white" style="font-size: 9pt"><b>Cleric of |DEITY|</b></font></td>
     </tr>
     <tr>
      <td valign="top" class="border8"><b>Domain</b><br /></td>
      <td valign="top" class="border8"><b>Granted Power</b><br /></td>
     </tr>
<!--Bjorn Ehlert: The use of COUNT[DOMAINS]+1 doesn't result in empty TDs at the end of the TABLE-->
|FOR.1,COUNT[DOMAINS]+1,1,<tr><td valign="top" class="border7">\DOMAIN.%\<br /></td><td valign="top" class="border7">\DOMAIN.%.POWER\<br /></td></tr>, , ,0|
    </table>
<font style="font-size:2pt"><br /></font>
|%|
<!-- STOP Domain Table -->
<!-- Start Turning Table -->
|FOR,%turncount,0,count("ABILITIES","CATEGORY=Special Ability","TYPE=Turning"),1,0|
|IIF(ABILITYALL.Special Ability.%turncount.TYPE=Turning.HASASPECT.TurnType:Y)|
   <table width="100%" cellspacing="0" cellpadding="3" summary="Clerical Turning Table">
     <tr>
      <td bgcolor="black" align="center" colspan="4"><font color="white" style="font-size: 9pt"><b>|ABILITYALL.Special Ability.%turncount.TYPE=Turning.ASPECT.TurnType| |ABILITYALL.Special Ability.%turncount.TYPE=Turning.ASPECT.TurnKind|</b></font></td>
     </tr>
     <tr >
      <td rowspan="2" width="25%" bgcolor="black" align="center"><font color="white" style="font-size: 7pt">TURNING CHECK<br />RESULT</font></td>
      <td rowspan="2" width="25%" bgcolor="black" align="center"><font color="white" style="font-size: 7pt">AFFECTED<br />(MAX HIT DICE)</font></td>
      <td width="25%" bgcolor="black" align="right"><font color="white" style="font-size: 7pt">TURN LEVEL</font></td>
      <td width="25%" class="border9" align="center"><b>|ABILITYALL.Special Ability.%turncount.TYPE=Turning.ASPECT.TurnLevel.INTVAL|</b></td>
     </tr>
     <tr>
      <td bgcolor="black" align="right"><font color="white" style="font-size: 7pt">TURN DAMAGE</font></td>
      <td class="border9" align="center"><b>|ABILITYALL.Special Ability.%turncount.TYPE=Turning.ASPECT.TurnDamage|</b></td>
     </tr>
     <tr>
      <td align="center" class="font8"><b>Up to 0</b></td>
      <td align="center" class="font8"><b>|((ABILITYALL.Special Ability.%turncount.TYPE=Turning.ASPECT.TurnLevel)-4).INTVAL|</b></td>
      <td bgcolor="black" align="right"><font color="white" style="font-size: 7pt">TURNING CHECK</font></td>
      <td class="border9" align="center"><b>1d20|ABILITYALL.Special Ability.%turncount.TYPE=Turning.ASPECT.TurnCheck.INTVAL.SIGN.NOZERO|</b></td>
     </tr>
     <tr>
      <td bgcolor="gray" align="center" class="font8"><b>1 - 3</b></td>
      <td bgcolor="gray" align="center" class="font8"><b>|((ABILITYALL.Special Ability.%turncount.TYPE=Turning.ASPECT.TurnLevel)-3).INTVAL|</b></td>
      <td bgcolor="black" align="right"><font color="white" style="font-size: 7pt">TURNS/DAY</font></td>
      <td class="border9" align="center"><b>|ABILITYALL.Special Ability.%turncount.TYPE=Turning.ASPECT.TurnTimes.INTVAL|</b></td>
     </tr>
     <tr>
      <td align="center" class="font8"><b>4 - 6</b></td>
      <td align="center" class="font8"><b>|((ABILITYALL.Special Ability.%turncount.TYPE=Turning.ASPECT.TurnLevel)-2).INTVAL|</b></td>
      <td colspan="2" class="border" align="center"><font style="font-size: 9pt">|FOR.0,ABILITYALL.Special Ability.%turncount.TYPE=Turning.ASPECT.TurnTimes.INTVAL,5,&#9744;, , ,1|</font></td>
     </tr>
     <tr>
      <td bgcolor="gray" align="center" class="font8"><b>7 - 9</b></td>
      <td bgcolor="gray" align="center" class="font8"><b>|((ABILITYALL.Special Ability.%turncount.TYPE=Turning.ASPECT.TurnLevel)-1).INTVAL|</b></td>
      <td colspan="2" rowspan="6" class="border8" valign="top">|ABILITYALL.Special Ability.%turncount.TYPE=Turning.ASPECT.TurnNotes|
     </tr>
     <tr>
      <td align="center" class="font8"><b>10 - 12</b></td>
      <td align="center" class="font8"><b>|((ABILITYALL.Special Ability.%turncount.TYPE=Turning.ASPECT.TurnLevel)+0).INTVAL|</b></td>
     </tr>
     <tr>
      <td bgcolor="gray" align="center" class="font8"><b>13 - 15</b></td>
      <td bgcolor="gray" align="center" class="font8"><b>|((ABILITYALL.Special Ability.%turncount.TYPE=Turning.ASPECT.TurnLevel)+1).INTVAL|</b></td>
     </tr>
     <tr>
      <td align="center" class="font8"><b>16 - 18</b></td>
      <td align="center" class="font8"><b>|((ABILITYALL.Special Ability.%turncount.TYPE=Turning.ASPECT.TurnLevel)+2).INTVAL|</b></td>
     </tr>
     <tr>
      <td bgcolor="gray" align="center" class="font8"><b>19 - 21</b></td>
      <td bgcolor="gray" align="center" class="font8"><b>|((ABILITYALL.Special Ability.%turncount.TYPE=Turning.ASPECT.TurnLevel)+3).INTVAL|</b></td>
     </tr>
     <tr>
      <td align="center" class="font8"><b>22+</b></td>
      <td align="center" class="font8"><b>|((ABILITYALL.Special Ability.%turncount.TYPE=Turning.ASPECT.TurnLevel)+4).INTVAL|</b></td>
     </tr>
    </table>
<font style="font-size:2pt"><br /></font>

|ENDIF|
|ENDFOR|


<!-- Stop Turning Table -->


  </td>
  <td width="50%" valign="top">
<!-- START Language Table -->
   <table width="100%" cellspacing="0" cellpadding="3" summary="Language Table">
    <tr>
     <td bgcolor="black" align="center" colspan="1"><font color="white" style="font-size: 9pt"><b>LANGUAGES</b></font></td>
    </tr>
    <tr>
     <td valign="top" width="100%" class="border8">|LANGUAGES|<br /></td>
    </tr>
   </table>
<!-- STOP Language Table -->
<!-- Start Proficiency Table -->
|%WEAPONPROF|
   <table width="100%" cellspacing="0" cellpadding="3" summary="Proficiency Table">
    <tr>
     <td bgcolor="black" align="center" colspan="1"><font color="white" style="font-size: 9pt"><b>PROFICIENCIES</b></font></td>
    </tr>
    <tr>
     <td valign="top" width="100%" class="border8">|WEAPONPROFS|<br /></td>
    </tr>
   </table>
<!-- STOP Proficiency Table -->
|%|
<!-- START Archetypes Table -->
|IIF(count("ABILITIES";"CATEGORY=Archetype";"TYPE=Archetype";"VISIBILITY=DEFAULT[or]VISIBILITY=OUTPUT_ONLY")>0)|
   <table width="100%" cellspacing="0" cellpadding="2" summary="Archetype Table">
    <tr>
     <td bgcolor="black" align="center"><font color="white" style="font-size: 9pt"><b>Archetypes</b></font></td>
    </tr>
|FOR,%archetype,0,count("ABILITIES","CATEGORY=Archetype","TYPE=Archetype","VISIBILITY=DEFAULT[or]VISIBILITY=OUTPUT_ONLY")-1,1,0|
|OIF(EVEN:%archetype,<tr bgcolor="#DDDDDD">,<tr bgcolor="white">)|
     <td valign="top" class="font8"><b>|ABILITYALL.Archetype.VISIBLE.%archetype.TYPE=Archetype|
</b>
|ABILITYALL.Archetype.VISIBLE.%archetype.TYPE=Archetype.DESC|</td>
    </tr>
|ENDFOR|
   </table>
|ENDIF|
<!-- STOP Archetypes Table -->

<!-- START Afflictions Table -->
|IIF(count("ABILITIES";"CATEGORY=Afflictions";"TYPE=Affliction";"VISIBILITY=DEFAULT[or]VISIBILITY=OUTPUT_ONLY")>0)|
   <table width="100%" cellspacing="0" cellpadding="2" summary="Feat Table">
    <tr>
     <th bgcolor="black" align="center" class="ab" colspan="2"><b>Afflictions</b></th>
    </tr>
|FOR,%affliction,0,count("ABILITIES","CATEGORY=Afflictions","TYPE=Affliction","VISIBILITY=DEFAULT[or]VISIBILITY=OUTPUT_ONLY")-1,1,0|
|OIF(EVEN:%affliction,<tr bgcolor="#DDDDDD">,<tr bgcolor="white">)|
     <td valign="top" class="font8" width="70%"><b>|ABILITYALL.Afflictions.VISIBLE.%affliction.TYPE=Affliction|</b></td>
	<td valign="top" class="font8" width="30%" align="right">[|ABILITYALL.Afflictions.VISIBLE.%affliction.TYPE=Affliction.SOURCE|]</td>
	<tr>
|OIF(EVEN:%afflictions,<tr bgcolor="#DDDDDD">,<tr bgcolor="white">)|
<td class="font8" valign="top"	align="indent" colspan="2">&#160;&#160;&#160;&#160;
|ABILITYALL.Afflictions.VISIBLE.%affliction.TYPE=Affliction.DESC|
	</td>
	</tr>
|ENDFOR|
	</table>
|ENDIF|
<!-- STOP Afflictions Table -->

<!-- Start Animal Tricks -->
|IIF(count("ABILITIES";"CATEGORY=Special Ability";"VISIBILITY=DEFAULT[or]VISIBILITY=OUTPUT_ONLY";"TYPE=AnimalTrick")==0)|
|ELSE|
   <table width="100%" cellspacing="0" cellpadding="2" summary="Animal Tricks Table">
    <tr>
     <td bgcolor="black" align="center"><font color="white" style="font-size: 9pt"><b>ANIMAL TRICKS</b></font></td>
    </tr>
|FOR,%animalTrick,0,count("ABILITIES","CATEGORY=Special Ability","VISIBILITY=DEFAULT[or]VISIBILITY=OUTPUT_ONLY","TYPE=AnimalTrick")-1,1,0|
|OIF(EVEN:%animalTrick,<tr bgcolor="#DDDDDD">,<tr bgcolor="white">)|
     <td valign="top" class="font8"><b>|ABILITYALL.Special Ability.VISIBLE.%animalTrick.TYPE=AnimalTrick|</b>
    |ABILITYALL.Special Ability.VISIBLE.%animalTrick.TYPE=AnimalTrick.DESC|</td>
    </tr>
|ENDFOR|
   </table>
|ENDIF|
<!-- Stop Animal Tricks -->
  </td>
 </tr>
</table>
<!-- ================================================================ -->
<!-- Start Racial Innate Spells -->
|FOR,%spellrace,COUNT[SPELLRACE],COUNT[SPELLRACE],1,0|
|IIF(%spellrace:0)|
	<!-- No innate spells -->
|ELSE|
<br style="page-break-after: always" />
|FOR,%spellbook,1,1,1,1|
|FOR,%class,0,0,1,1|
|FOR,%level,0,0,1,1|
|%SPELLLISTBOOK.%class.%level.%spellbook|
<!-- START Spell list Header Table (Racial Innate) -->
<table width="100%" cellspacing="0" cellpadding="2" summary="Spell List">
 <tr>
  <td colspan="11" class="sphead"><b>Innate Spell-like Abilities</b></td>
 </tr>
</table>
<!-- End Spell List Header Table (Racial Innate) -->
<!-- Start Racial Innate Spell listing -->
<table width="100%" cellspacing="0" cellpadding="2" summary="Spell List">
|FOR,%spell,0,COUNT[SPELLSINBOOK.%class.%spellbook.%level]-1,1,0|
|OIF(EVEN:%spell,<tr bgcolor="#DDDDDD">,<tr bgcolor="white">)|
  <td class="spname"><b>|SPELLMEM.%class.%spellbook.%level.%spell.NAME|</b><br /></td>
  <td class="sptab">
|IIF(SPELLMEM.%class.%spellbook.%level.%spell.SAVEINFO:None)|
|ELSE|
  <i>DC:</i> |SPELLMEM.%class.%spellbook.%level.%spell.DC|<br />
|ENDIF|
  	</td>
  <td class="sptab"><i>Save:</i> |SPELLMEM.%class.%spellbook.%level.%spell.SAVEINFO|<br /></td>
  <td class="sptab"><i>Time:</i> |SPELLMEM.%class.%spellbook.%level.%spell.CASTINGTIME|,
|IIF(SPELLMEM.%class.%spellbook.%level.%spell.TIMES:At Will)|
at will
|ELSE|
|SPELLMEM.%class.%spellbook.%level.%spell.TIMES|/|SPELLMEM.%class.%spellbook.%level.%spell.TIMEUNIT|
|ENDIF|
   <br /></td>
  <td class="sptab"><i>Duration:</i> |SPELLMEM.%class.%spellbook.%level.%spell.DURATION|<br /></td>
  <td class="sptab"><i>Rng:</i> |SPELLMEM.%class.%spellbook.%level.%spell.RANGE|<br /></td>
  <td class="sptab"><i>Comp:</i> |SPELLMEM.%class.%spellbook.%level.%spell.COMPONENTS|<br /></td>
  <td class="sptab"><i>SR:</i> |SPELLMEM.%class.%spellbook.%level.%spell.SR|<br /></td>
  <td class="sptab"><i>School:</i> |SPELLMEM.%class.%spellbook.%level.%spell.SCHOOL|<br /></td>
 </tr>
|OIF(EVEN:%spell,<tr bgcolor="#DDDDDD">,<tr bgcolor="white">)|
  <td colspan="7" class="sptab1"><i>Effect:</i>&nbsp;&nbsp;|SPELLMEM.%class.%spellbook.%level.%spell.EFFECT|<br /></td>
  <td colspan="2" class="sptab2"><i>Source:</i>&nbsp;&nbsp;|SPELLMEM.%class.%spellbook.%level.%spell.SOURCEPAGE|<br /></td>
 </tr>
|OIF(EVEN:%spell,<tr bgcolor="#DDDDDD">,<tr bgcolor="white">)|
  <td colspan="7" class="sptab1"><i>Target Area:</i>&nbsp;&nbsp; |SPELLMEM.%class.%spellbook.%level.%spell.TARGET|<br /></td>
  <td colspan="2" class="sptab2"><i>Caster Level:</i> |SPELLMEM.%class.%spellbook.%level.%spell.CASTERLEVEL|<br /></td>
   </tr>
|ENDFOR|
 <tr>
  <td colspan="9" bgcolor="black"><br /></td>
 </tr>
</table>
|%|
|ENDFOR|
|ENDFOR|
|ENDFOR|
<!-- End Racial Innate Spells -->
<!-- Start Other Innate Spells -->
|FOR,%spellbook,2,COUNT[SPELLBOOKS]-1,1,0|
|FOR,%class,0,0,1,1|
|FOR,%level,0,0,1,1|
|%SPELLLISTBOOK.%class.%level.%spellbook|
<!-- START Spell list Header Table (Other Innate) -->
<br />
<table width="100%" cellspacing="0" cellpadding="2" summary="Spell List">
 <tr>
  <td colspan="9" class="sphead"><b>|SPELLBOOKNAME.%spellbook| Spell-like Abilities</b></font></td>
 </tr>
</table>
<table width="100%" cellspacing="0" cellpadding="2" summary="Spell List">
|FOR,%spell,0,COUNT[SPELLSINBOOK.%class.%spellbook.%level]-1,1,0|
|OIF(EVEN:%spell,<tr bgcolor="#DDDDDD">,<tr bgcolor="white">)|
  <td class="spname"><b>|SPELLMEM.%class.%spellbook.%level.%spell.NAME|</b><br /></td>
  <td class="sptab">
|IIF(SPELLMEM.%class.%spellbook.%level.%spell.SAVEINFO:None)|
|ELSE|
  <i>DC:</i> |SPELLMEM.%class.%spellbook.%level.%spell.DC|<br />
|ENDIF|
  	</td>
  <td class="sptab"><i>Save:</i> |SPELLMEM.%class.%spellbook.%level.%spell.SAVEINFO|<br /></td>
  <td class="sptab"><i>Time:</i> |SPELLMEM.%class.%spellbook.%level.%spell.CASTINGTIME|,
|IIF(SPELLMEM.%class.%spellbook.%level.%spell.TIMES:At Will)|
at will
|ELSE|
|SPELLMEM.%class.%spellbook.%level.%spell.TIMES|/|SPELLMEM.%class.%spellbook.%level.%spell.TIMEUNIT|
|ENDIF|
   <br /></td>
  <td class="sptab"><i>Duration:</i> |SPELLMEM.%class.%spellbook.%level.%spell.DURATION|<br /></td>
  <td class="sptab"><i>Rng:</i> |SPELLMEM.%class.%spellbook.%level.%spell.RANGE|<br /></td>
  <td class="sptab"><i>Comp:</i> |SPELLMEM.%class.%spellbook.%level.%spell.COMPONENTS|<br /></td>
  <td class="sptab"><i>SR:</i> |SPELLMEM.%class.%spellbook.%level.%spell.SR|<br /></td>
  <td class="sptab"><i>School:</i> |SPELLMEM.%class.%spellbook.%level.%spell.SCHOOL|<br /></td>
 </tr>
|OIF(EVEN:%spell,<tr bgcolor="#DDDDDD">,<tr bgcolor="white">)|
  <td colspan="7" class="sptab1"><i>Effect:</i>&nbsp;&nbsp;|SPELLMEM.%class.%spellbook.%level.%spell.EFFECT|<br /></td>
  <td colspan="2" class="sptab2"><i>Source:</i>&nbsp;&nbsp;|SPELLMEM.%class.%spellbook.%level.%spell.SOURCEPAGE|<br /></td>
 </tr>
|OIF(EVEN:%spell,<tr bgcolor="#DDDDDD">,<tr bgcolor="white">)|
  <td colspan="7" class="sptab1"><i>Target Area:</i>&nbsp;&nbsp; |SPELLMEM.%class.%spellbook.%level.%spell.TARGET|<br /></td>
  <td class="sptab2" colspan="2"><i>Caster Level:</i> |SPELLMEM.%class.%spellbook.%level.%spell.CASTERLEVEL|<br /></td>
 </tr>
|ENDFOR|
 <tr>
  <td colspan="9" bgcolor="black"><font style="font-size: 8pt" color="white"><br /></font></td>
 </tr>
</table>
|%|
|ENDFOR|
|ENDFOR|
|ENDFOR|
<!-- End Other Innate Spells -->
|ENDIF|
|ENDFOR|
<!-- End Innate Spells -->
|FOR,%spellbook,0,0,1,0|
<br style="page-break-after: always" />
|FOR,%class,COUNT[SPELLRACE],COUNT[SPELLRACE]+COUNT[CLASSES]-1,1,1|
|%SPELLLISTCLASS.%class|
<!-- START Spell list Header Table (Known) -->
<table width="100%" cellspacing="0" cellpadding="2" summary="Spell List">
 <tr>
  <td colspan="|MAXSPELLLEVEL.%class+2.INTVAL|" class="sphead"><b>|SPELLLISTCLASS.%class|
|IIF(SPELLLISTTYPE.%class:Psionic)|
                Powers
|ELSE|
                Spells
|ENDIF|
</b></td>
 </tr>
 <tr>
  <td bgcolor="black" class="sptop"><b>LEVEL</b></td>
|FOR,%level,0,MAXSPELLLEVEL.%class,1,1|
  <td bgcolor="black" class="sptop"><b>%level</b></td>
|ENDFOR|
 </tr>
 <tr>
  <td class="sptab"><b>KNOWN</b></td>
|FOR,%level,0,MAXSPELLLEVEL.%class,1,1|
  <td class="sptab"><b>|SPELLLISTKNOWN.%class.%level|</b></td>
|ENDFOR|
 </tr>
 <tr bgcolor="#DDDDDD">
  <td class="sptab"><b>PER DAY</b></td>
|FOR,%level,0,MAXSPELLLEVEL.%class,1,1|
  <td class="sptab"><b>|SPELLLISTCAST.%class.%level|</b></td>
|ENDFOR|
 </tr>
</table>
<!-- End Spell List Header Table (Known) -->
<!-- Start Known Spells -->
<table width="100%" cellspacing="0" cellpadding="2" summary="Spell List">
|FOR,%level,0,MAXSPELLLEVEL.%class,1,1|
|FOR,%spellcount,COUNT[SPELLSINBOOK.%class.%spellbook.%level],COUNT[SPELLSINBOOK.%class.%spellbook.%level],1,0|
|IIF(%spellcount:0)|
|ELSE|
 <tr>
  <td colspan="10" class="splevel"><b>LEVEL %level</b></td>
 </tr>
|IIF(SPELLLISTMEMORIZE.%class)|
|ELSE|
 <tr>
  <td colspan="10" class="splevel"><b>
|FOR.0,COUNT[SPELLLISTCAST.%class.%level],1,1,1,&#9744;,,,0|
  </b></td>
 </tr>
|ENDIF|
|FOR,%spell,0,COUNT[SPELLSINBOOK.%class.%spellbook.%level]-1,1,0|
|OIF(EVEN:%spell,<tr bgcolor="#DDDDDD">,<tr bgcolor="white">)|
  <td class="spname"><b>|SPELLMEM.%class.%spellbook.%level.%spell.BONUSSPELL||SPELLMEM.%class.%spellbook.%level.%spell.NAME|</b><br /></td>
  <td class="sptab">
|IIF(SPELLMEM.%class.%spellbook.%level.%spell.SAVEINFO:None)|
|ELSE|
  <i>DC:</i> |SPELLMEM.%class.%spellbook.%level.%spell.DC|<br />
|ENDIF|
  	</td>
  <td class="sptab"><i>Save:</i> |SPELLMEM.%class.%spellbook.%level.%spell.SAVEINFO|<br /></td>
  <td class="sptab"><i>Time:</i> |SPELLMEM.%class.%spellbook.%level.%spell.CASTINGTIME|<br /></td>
  <td class="sptab"><i>Duration:</i> |SPELLMEM.%class.%spellbook.%level.%spell.DURATION|<br /></td>
  <td class="sptab"><i>Rng:</i> |SPELLMEM.%class.%spellbook.%level.%spell.RANGE|<br /></td>
  <td class="sptab"><i>Comp:</i> |SPELLMEM.%class.%spellbook.%level.%spell.COMPONENTS|<br /></td>
  <td class="sptab"><i>SR:</i> |SPELLMEM.%class.%spellbook.%level.%spell.SR|<br /></td>
  <td class="sptab"><i>School:</i> |SPELLMEM.%class.%spellbook.%level.%spell.SCHOOL|<br /></td>
  <td class="sptab">
|IIF(SPELLLISTTYPE.%class:Psionic)|
|FOR,%ppcost,(%level*2)-1,(%level*2)-1,1,1|
|IIF(%ppcost:-1)|
		<i>PP:</i> 0/1
|ELSE|
		<i>PP:</i> %ppcost
|ENDIF|
|ENDFOR|
  </td>
|ELSE|
|IIF(SPELLLISTMEMORIZE.%class)|
  <font style="font-size: 11pt">&#9744;&#9744;&#9744;</font></td>
|ENDIF|
|ENDIF|
 </tr>
|OIF(EVEN:%spell,<tr bgcolor="#DDDDDD">,<tr bgcolor="white">)|
  <td colspan="8" class="sptab1"><i>Effect:</i>&nbsp;&nbsp;|SPELLMEM.%class.%spellbook.%level.%spell.EFFECT|<br /></td>
  <td colspan="2" class="sptab2"><i>Source:</i>&nbsp;&nbsp;|SPELLMEM.%class.%spellbook.%level.%spell.SOURCEPAGE|<br /></td>
 </tr>
|OIF(EVEN:%spell,<tr bgcolor="#DDDDDD">,<tr bgcolor="white">)|
  <td colspan="8" class="sptab1"><i>Target Area:</i>&nbsp;&nbsp; |SPELLMEM.%class.%spellbook.%level.%spell.TARGET|<br /></td>
  <td colspan="2" class="sptab2"><i>Caster Level:</i>&nbsp;&nbsp; |SPELLMEM.%class.%spellbook.%level.%spell.CASTERLEVEL|<br /></td>
 </tr>
|ENDFOR|
|ENDIF|
|ENDFOR|
|ENDFOR|
 <tr>
  <td colspan="10" bgcolor="black"><font style="font-size: 8pt" color="white">* = Domain/Specialty Spell</font></td>
 </tr>
</table>
<br />
|%|
|ENDFOR|
|ENDFOR|
<!-- End Known Spells -->
<!-- ================================================================ -->
<!-- Start Prepared Spells -->
|FOR,%memorised,COUNT[SPELLRACE]+COUNT[SPELLBOOKS]-2,COUNT[SPELLRACE]+COUNT[SPELLBOOKS]-2,1,0|
|IIF(%memorised:0)|
|ELSE|
<!-- Start Innate Prepared -->
|FOR,%spellrace,COUNT[SPELLRACE],COUNT[SPELLRACE],1,0|
|IIF(%spellrace:0)|
|ELSE|
|FOR,%spellbook,1,1,1,0|
|FOR,%class,0,0,1,0|
|FOR,%level,0,0,1,0|
|%SPELLLISTBOOK.%class.%level.%spellbook|
<br style="page-break-after: always" />
<table width="100%" cellspacing="0" cellpadding="2" summary="Spell List">
 <tr>
  <td colspan="11" align="center" bgcolor="black"><font color="white"><b>Racial Innate</b></font></td>
 </tr>
 <tr>
  <td valign="top">
   <table>
|FOR,%spell,0,COUNT[SPELLSINBOOK.%class.%spellbook.%level]-1,1,0|
|IIF(SPELLMEM.%class.%spellbook.%level.%spell.TIMES:At Will)|
    <tr>
     <td align="right" class="font9">At Will</td>
|ELSE|
    <tr>
     <td align="right"><font style="font-size: 11pt">
|FOR.0,SPELLMEM.%class.%spellbook.%level.%spell.TIMES,1,&#9744;,NONE,NONE,2|</font>
     </td>
|ENDIF|
     <td class="font9"><b>|SPELLMEM.%class.%spellbook.%level.%spell.NAME|</b> (DC:|SPELLMEM.%class.%spellbook.%level.%spell.DC|)</td>
    </tr>
|ENDFOR|
   </table>
  </td>
 </tr>
 <tr>
  <td colspan="11" bgcolor="black"><font style="font-size: 8pt" color="white"><br /></font></td>
 </tr>
</table>
|%|
|ENDFOR|
|ENDFOR|
|ENDFOR|
<br />

|FOR,%spellbook,2,COUNT[SPELLBOOKS]-1,1,0|
|FOR,%class,0,0,1,1|
|FOR,%level,0,0,1,1|
|%SPELLLISTBOOK.%class.%level.%spellbook|
<table width="100%" cellspacing="0" cellpadding="2" summary="Spell List">
 <tr>
  <td colspan="11" align="center" bgcolor="black"><font color="white"><b>|SPELLBOOKNAME.%spellbook| Spells</b></font></td>
 </tr>
  <td valign="top">
   <table>
|FOR,%spell,0,COUNT[SPELLSINBOOK.%class.%spellbook.%level]-1,1,0|
|IIF(SPELLMEM.%class.%spellbook.%level.%spell.TIMES:At Will)|
    <tr>
     <td align="right" class="font9">At Will</td>
|ELSE|
    <tr>
     <td align="right"><font style="font-size: 11pt">
|FOR.0,SPELLMEM.%class.%spellbook.%level.%spell.TIMES,1,&#9744;,NONE,NONE,2|</font>
     </td>
|ENDIF|
     <td class="font9"><b>|SPELLMEM.%class.%spellbook.%level.%spell.NAME|</b> (DC:|SPELLMEM.%class.%spellbook.%level.%spell.DC|)</td>
    </tr>
|ENDFOR|
   </table>
  </td>
 </tr>
 <tr>
  <td colspan="11" bgcolor="black"><font style="font-size: 8pt" color="white"><br /></font></td>
 </tr>
</table>
|%|
|ENDFOR|
|ENDFOR|
|ENDFOR|
<br />
|ENDIF|
|ENDFOR|
<!-- End Innate Prepared -->


<!-- Start Regular Prepared -->
|FOR,%spellbook,2,COUNT[SPELLBOOKS]-1,1,0|
|FOR,%foo,COUNT[SPELLRACE],COUNT[SPELLRACE],1,1|
|FOR,%bar,COUNT[SPELLSINBOOK0.%spellbook.0],COUNT[SPELLSINBOOK0.%spellbook.0],1,1|
|IIF(%foo:0.OR.%bar:0)|
<!-- Either we do not have a innate race, or if we do we do not have any 0 level spell for the innate race -->
<br style="page-break-after: always" />
<table width="100%" cellspacing="0" cellpadding="2" summary="Spell List">
 <tr>
  <td colspan="11" align="center" bgcolor="black"><font color="white"><b>|SPELLBOOKNAME.%spellbook|</b></font></td>
 </tr>
|FOR,%class,COUNT[SPELLRACE],COUNT[SPELLRACE]+COUNT[CLASSES]-1,1,1|
|%SPELLLISTCLASS.%class|
 <tr>
  <td align="center" bgcolor="#DDDDDD" colspan="11"><font style="font-size: 9pt" color="black">|SPELLLISTCLASS.%class|</font></td>
 </tr>
 <tr>
|FOR,%level,0,4,1,1|
  <td valign="top">
|FOR,%spelllevelcount,COUNT[SPELLSINBOOK.%class.%spellbook.%level],COUNT[SPELLSINBOOK.%class.%spellbook.%level],1,0|
|IIF(%spelllevelcount:0)|
<!-- no memorized spells for SPELLSINBOOK.%class %spellbook %level -->
|ELSE|
   <table summary="Spell List">
    <tr>
     <td valign="top" align="center" colspan="2"><font style="font-size: 9pt" color="black"><u>Level %level</u></font></td>
    </tr>
|FOR,%spell,0,COUNT[SPELLSINBOOK.%class.%spellbook.%level]-1,1,0|
    <tr>
     <td align="right"><font style="font-size: 11pt">
|FOR.0,SPELLMEM.%class.%spellbook.%level.%spell.TIMES,1,&#9744;,NONE,NONE,1|</font>
     </td>
     <td class="font9"><b>|SPELLMEM.%class.%spellbook.%level.%spell.BONUSSPELL||SPELLMEM.%class.%spellbook.%level.%spell.NAME|</b> (DC:|SPELLMEM.%class.%spellbook.%level.%spell.DC|)</td>
    </tr>
|ENDFOR|
   </table>
|ENDIF|
|ENDFOR|
  </td>
|ENDFOR|
<tr>
|FOR,%level,5,9,1,1|
  <td valign="top">
|FOR,%spelllevelcount,COUNT[SPELLSINBOOK.%class.%spellbook.%level],COUNT[SPELLSINBOOK.%class.%spellbook.%level],1,0|
|IIF(%spelllevelcount:0)|
<!-- no memorized spells for SPELLSINBOOK.%class %spellbook %level -->
|ELSE|
   <table summary="Spell List">
    <tr>
     <td valign="top" align="center" colspan="2"><font style="font-size: 9pt" color="black"><u>Level %level</u></font></td>
    </tr>
|FOR,%spell,0,COUNT[SPELLSINBOOK.%class.%spellbook.%level]-1,1,0|
    <tr>
     <td align="right"><font style="font-size: 11pt">
|FOR.0,SPELLMEM.%class.%spellbook.%level.%spell.TIMES,1,&#9744;,NONE,NONE,1|</font>
     </td>
     <td class="font9"><b>|SPELLMEM.%class.%spellbook.%level.%spell.BONUSSPELL||SPELLMEM.%class.%spellbook.%level.%spell.NAME|</b> (DC:|SPELLMEM.%class.%spellbook.%level.%spell.DC|)</td>
    </tr>
|ENDFOR|
   </table>
|ENDIF|
|ENDFOR|
  </td>
<!-- END FOR,%spellcount,COUNT[SPELLSINBOOK.%class.%spellbook.0],COUNT[SPELLSINBOOK.%class.%spellbook.0],1,0 -->
|ENDFOR|
<!-- END SPELLLISTCLASS.%class -->
|%|
<!-- END FOR,%class,COUNT[SPELLRACE],COUNT[SPELLRACE]+COUNT[CLASSES]-1,1,1 -->
|ENDFOR|
 <tr>
  <td colspan="11" bgcolor="black"><font style="font-size: 8pt" color="white">* = Domain/Specialty Spell</font></td>
 </tr>
</table>
|ELSE|
|ENDIF|
<!-- END FOR,%bar,COUNT[SPELLSINBOOK0.%spellbook.0],COUNT[SPELLSINBOOK0.%spellbook.0],1,1 -->
|ENDFOR|
<!-- END FOR,%foo,COUNT[SPELLRACE],COUNT[SPELLRACE],1,1 -->
|ENDFOR|
<!-- END FOR,%spellbook,2,COUNT[SPELLBOOKS]-1,1,0 -->
|ENDFOR|
<!-- ### END class Spellbook memorized spells ### -->
<!-- START FALSE IIF(%memorised:0) -->
|ENDIF|
|ENDFOR|
<!-- ### END MEMORIZED ### -->

<!-- End Prepared Spells -->
<!-- ================================================================= -->
|%BIO|
<br style="page-break-after: always" />
<a name="Bio"></a>
<!-- START Bio Table -->
<table width="100%" cellspacing="0" cellpadding="2">
 <tr>
  <td colspan="2"><font style="font-size: 14pt">|NAME| |%FOLLOWEROF|- |FOLLOWEROF| |%| |%BIO|</font></td>
 </tr>
 <tr>
  <td class="border" height="400" width="1%"><img src="|NAME|_Full.jpg" height="400" alt="|NAME|'s portrait" /></td>
  <td valign="top" width="99%">
   <table width="100%" cellspacing="0" cellpadding="2">
    <tr><td class="biodata">|RACE|<br/></td></tr>
    <tr><td class="topline"><font style="font-size: 6pt">RACE</font></td></tr>
    <tr><td class="biodata">|AGE|<br/></td></tr>
    <tr><td class="topline"><font style="font-size: 6pt">AGE</font></td></tr>
    <tr><td class="biodata">|HEIGHT|<br/></td></tr>
    <tr><td class="topline"><font style="font-size: 6pt">HEIGHT</font></td></tr>
    <tr><td class="biodata">|WEIGHT|<br/></td></tr>
    <tr><td class="topline"><font style="font-size: 6pt">WEIGHT</font></td></tr>
    <tr><td class="biodata">|COLOR.EYE|<br/></td></tr>
    <tr><td class="topline"><font style="font-size: 6pt">EYE COLOR</font></td></tr>
    <tr><td class="biodata">|COLOR.SKIN|<br/></td></tr>
    <tr><td class="topline"><font style="font-size: 6pt">SKIN COLOR</font></td></tr>
    <tr><td class="biodata">|COLOR.HAIR|<br/></td></tr>
    <tr><td class="topline"><font style="font-size: 6pt">HAIR COLOR</font></td></tr>
    <tr><td class="biodata">|LENGTH.HAIR|<br/></td></tr>
    <tr><td class="topline"><font style="font-size: 6pt">HAIR LENGTH</font></td></tr>
    <tr><td class="biodata">|PHOBIAS|<br/></td></tr>
    <tr><td class="topline"><font style="font-size: 6pt">PHOBIAS</font></td></tr>
    <tr><td class="biodata">|PERSONALITY1| |PERSONALITY2|<br/></td></tr>
    <tr><td class="topline"><font style="font-size: 6pt">PERSONALITY TRAITS</font></td></tr>
    <tr><td class="biodata">|INTERESTS|<br/></td></tr>
    <tr><td class="topline"><font style="font-size: 6pt">INTERESTS</font></td></tr>
    <tr><td class="biodata">|SPEECHTENDENCY|, |CATCHPHRASE|<br/></td></tr>
    <tr><td class="topline"><font style="font-size: 6pt">SPOKEN STYLE</font></td></tr>
   </table>
<!-- STOP BIO Table -->
  </td>
 </tr>
 <tr><td class="borderbottom" colspan="2"><font style="font-size: 14pt">Description</font></td></tr>
 <tr><td colspan="2"><font style="font-size: 9pt"><span class="notes">|DESC|</span></font></td></tr>
 <tr><td class="borderbottom" colspan="2"><font style="font-size: 14pt">Home</font></td></tr>
 <tr><td colspan="2"><font style="font-size: 9pt">|%REGION| From |REGION|. |%| |%BIO| |RESIDENCE|, |LOCATION|<br/></font></td></tr>
 <tr><td class="borderbottom" colspan="2"><font style="font-size: 14pt">Biography</font></td></tr>
 <tr><td colspan="2"><font style="font-size: 9pt"><span class="notes">|BIO|</span></font></td></tr>
</table>
|%|
|%NOTES|
<br style="page-break-after: always" />

<table width="100%" cellspacing="0" cellpadding="5">
<tr>
<td colspan="2" class="notehead"><b>Notes</b></td>
</tr>
|FOR,%note,0,COUNT[NOTES]-1,1,1|
|IIF(NOTE.%note.NAME:DM Notes)|
|ELSE|
<tr>
<td class="notetab" width="20%"><span
class="notes">|NOTE.%note.NAME|</span></td><td class="notetab"
width="80%"><span class="notes">|NOTE.%note.VALUE|</span></td>
</tr>
|ENDIF|
|ENDFOR|
</table>
|%|
<div id="debug" style="background-color:red">
</div>

<script type="text/javascript">
function updateDebugClear()
{
	var debugEl = document.getElementById('debug');
	if (debugEl)
		debugEl.innerHTML = '';
}

function updateDebug(mode, text)
{
	var debugEl = document.getElementById('debug');
	if (!debugEl)
		return;
		
	if (mode != 1)
		return;
		
	debugEl.innerHTML += text + '<br/>';
}

function updateFromAndroid()
{
	updateDebugClear();
	
	try
	{
		var debugMode = Android.getDebugMode();
		
		updateDebug(debugMode, "Stats");
|FOR,%stat,0,COUNT[STATS]-1,1,1|
		var ability_|%stat| = document.getElementById('ability_|%stat|');
		var ability_|%stat|_current = document.getElementById('ability_|%stat|_current');
		var ability_|%stat|_mod = document.getElementById('ability_|%stat|_mod');
		var ability_|%stat|_damage = document.getElementById('ability_|%stat|_damage');
		var ability_|%stat|_bonus = document.getElementById('ability_|%stat|_bonus');
|ENDFOR|
|%|

		updateDebug(debugMode, "Damage Elements");
		var damage_primary = document.getElementById('damage_primary');
		var damage_primary_current = document.getElementById('damage_primary_current');
		var damage_primary_temp = document.getElementById('damage_primary_temp');
		var damage_secondary_current = document.getElementById('damage_secondary_current');

		updateDebug(debugMode, "Defense Elements");
		var defense_total = document.getElementById('defense_total');
		var defense_flat = document.getElementById('defense_flat');
		var defense_stat = document.getElementById('defense_stat');
		var defense_touch = document.getElementById('defense_touch');
		var defense_temp = document.getElementById('defense_temp');

		updateDebug(debugMode, "Initiative Elements");
		var initiative_current = document.getElementById('initiative_current');
		var initiative_total = document.getElementById('initiative_total');
		var initiative_ability = document.getElementById('initiative_ability');

		updateDebug(debugMode, "Saves Elements");
|FOR,%checks,0,COUNT[CHECKS]-1,1,0|
		var save_|%checks| = document.getElementById('save_|%checks|');
		var save_|%checks|_stat = document.getElementById('save_|%checks|_stat');
		var save_|%checks|_misc = document.getElementById('save_|%checks|_misc');
		var save_|%checks|_temp = document.getElementById('save_|%checks|_temp');
|ENDFOR|
|%|

		updateDebug(debugMode, "Attack Base Elements");
		var attack_base = document.getElementById('attack_base');
		
		updateDebug(debugMode, "Attack Melee Elements");
		var attack_melee = document.getElementById('attack_melee');
		var attack_melee_stat = document.getElementById('attack_melee_stat');
		var attack_melee_temp = document.getElementById('attack_melee_temp');

		updateDebug(debugMode, "Attack Ranged Elements");
		var attack_ranged = document.getElementById('attack_ranged');
		var attack_ranged_stat = document.getElementById('attack_ranged_stat');
		var attack_ranged_temp = document.getElementById('attack_ranged_temp');

		updateDebug(debugMode, "Attack Grapple Elements");
		var attack_grapple = document.getElementById('attack_grapple');
		var attack_grapple_stat = document.getElementById('attack_grapple_stat');
		var attack_grapple_temp = document.getElementById('attack_grapple_temp');

		updateDebug(debugMode, "Attack Unarmed Elements");
		var attack_unarmed = document.getElementById('attack_unarmed');
		var attack_unarmed_damage = document.getElementById('attack_unarmed_damage');
		
		updateDebug(debugMode, "Attack Weapon Elements");
|FOR,%weap,0,COUNT[EQTYPE.Weapon],1,1|
|IIF(WEAPON.%weap.CATEGORY:Melee)|
|IIF(WEAPOND.%weap.WIELD==1)|
		var attack_weapon|%weap|_basehit = document.getElementById('attack_weapon|%weap|_basehit');
		var attack_weapon|%weap|_ohhit = document.getElementById('attack_weapon|%weap|_ohhit');
|ENDIF|
		var attack_weapon|%weap|_thhit = document.getElementById('attack_weapon|%weap|_thhit');
|IIF(WEAPOND.%weap.WIELD!=2)|
		var attack_weapon|%weap|_twphith = document.getElementById('attack_weapon|%weap|_twphith');
		var attack_weapon|%weap|_twphitl = document.getElementById('attack_weapon|%weap|_twphitl');
		var attack_weapon|%weap|_twohit = document.getElementById('attack_weapon|%weap|_twohit');
|ENDIF|
|IIF(WEAPOND.%weap.WIELD==1)|
		var attack_weapon|%weap|_basedamage = document.getElementById('attack_weapon|%weap|_basedamage');
		var attack_weapon|%weap|_ohdamage = document.getElementById('attack_weapon|%weap|_ohdamage');
|ENDIF|
		var attack_weapon|%weap|_thdamage = document.getElementById('attack_weapon|%weap|_thdamage');
|IIF(WEAPOND.%weap.WIELD!=2)|
		var attack_weapon|%weap|_twpdamageh = document.getElementById('attack_weapon|%weap|_twpdamageh');
		var attack_weapon|%weap|_twpdamagel = document.getElementById('attack_weapon|%weap|_twpdamagel');
		var attack_weapon|%weap|_twodamage = document.getElementById('attack_weapon|%weap|_twodamage');
|ENDIF|
|ENDIF|
|IIF(WEAPON.%weap.CATEGORY:Ranged)|
|FOR,%range1,0,4,1,0|
		var attack_weapon|%weap|_ranged|%range1| = document.getElementById('attack_weapon|%weap|_ranged|%range1|');
		var attack_weapon|%weap|_ranged|%range1|_damage = document.getElementById('attack_weapon|%weap|_ranged|%range1|_damage');
|ENDFOR|
|ENDIF|
|ENDFOR|
		
		updateDebug(debugMode, "Conditional Modifiers Elements");
		var conditional_modifiers = document.getElementById('conditional_modifiers');
		
		updateDebug(debugMode, "Skill Elements");
		var conditional_modifiers = document.getElementById('conditional_modifiers');
|FOR,%skill,0,COUNT[SKILLS]-1,1,0|
		var skill_|%skill| = document.getElementById('skill_|%skill|');
		var skill_|%skill|_stat = document.getElementById('skill_|%skill|_stat');
		var skill_|%skill|_misc = document.getElementById('skill_|%skill|_misc');
		var skill_|%skill|_temp = document.getElementById('skill_|%skill|_temp');
|ENDFOR|
|%|

|FOR,%stat,0,COUNT[STATS]-1,1,1|
		updateDebug(debugMode, "Update Stats - |%stat|");
		ability_|%stat|.innerHTML = Android.getAbilityStatOriginal(|%stat|);
		ability_|%stat|_current.innerHTML = Android.getAbilityStat(|%stat|);
		ability_|%stat|_current.style.color = Android.getAbilityStatColor(|%stat|);
		ability_|%stat|_mod.innerHTML = Android.getAbilityStatMod(|%stat|);
		ability_|%stat|_mod.style.color = Android.getAbilityStatColor(|%stat|);
		ability_|%stat|_damage.innerHTML = Android.getAbilityStatDamage(|%stat|);
		ability_|%stat|_bonus.innerHTML = Android.getAbilityStatBonus(|%stat|);
|ENDFOR|
|%|

		updateDebug(debugMode, "Update Damage - Primary");
		damage_primary.innerHTML = Android.getDamagePrimaryMax();
		damage_primary_current.innerHTML = Android.getDamagePrimary();
		damage_primary_current.style.color = Android.getDamagePrimaryColor();
		updateDebug(debugMode, "Update Damage - Secondary");
		damage_secondary_current.innerHTML = Android.getDamageSecondary();
		damage_secondary_current.style.color = Android.getDamageSecondaryColor();
		damage_primary_temp.innerHTML = Android.getDamagePrimaryTemp();

		updateDebug(debugMode, "Update Defense - Total");
		defense_total.innerHTML = Android.getDefenseTotal();
		updateDebug(debugMode, "Update Defense - FlatFotted");
		defense_flat.innerHTML = Android.getDefenseFlatFooted();
		updateDebug(debugMode, "Update Defense - State");
		defense_stat.innerHTML = Android.getDefenseStat();
		updateDebug(debugMode, "Update Defense - Touch");
		defense_touch.innerHTML = Android.getDefenseTouch();
		updateDebug(debugMode, "Update Defense - Temp");
		defense_temp.innerHTML = Android.getDefenseTemp();

		updateDebug(debugMode, "Update Initiative");
		initiative_current.innerHTML = Android.getInitiative();
		initiative_current.style.color = Android.getInitiativeColor();
		initiative_total.innerHTML = Android.getInitiativeModifier();
		initiative_ability.innerHTML = Android.getInitiativeStat();

|FOR,%checks,0,COUNT[CHECKS]-1,1,0|
		updateDebug(debugMode, "Update Saves - |%checks|");
		save_|%checks|.innerHTML = Android.getAbilitySave(|%checks|);
		save_|%checks|_stat.innerHTML = Android.getAbilitySaveStat(|%checks|);
		save_|%checks|_misc.innerHTML = Android.getAbilitySaveMisc(|%checks|);
		save_|%checks|_temp.innerHTML = Android.getAbilitySaveTemp(|%checks|);
|ENDFOR|
|%|

		updateDebug(debugMode, "Update Attacks Base");
		attack_base.innerHTML = Android.getAttackBaseIterative();
		
		updateDebug(debugMode, "Update Attacks Melee");
		attack_melee.innerHTML = Android.getAttackBaseMeleeIterative();
		attack_melee.style.color = Android.getAttackBaseMeleeIterativeColor();
		attack_melee_stat.innerHTML = Android.getAttackBaseMeleeStat();
		attack_melee_temp = Android.getAttackBaseMeleeTemp();

		updateDebug(debugMode, "Update Attacks Ranged");
		attack_ranged.innerHTML = Android.getAttackBaseRangedIterative();
		attack_ranged.style.color = Android.getAttackBaseRangedIterativeColor();
		attack_ranged_stat.innerHTML = Android.getAttackBaseRangedStat();
		attack_ranged_temp.innerHTML = Android.getAttackBaseRangedTemp();

		updateDebug(debugMode, "Update Attacks Grapple");
		attack_grapple.innerHTML = Android.getAttackBaseGrappleIterative();
		attack_grapple.style.color = Android.getAttackBaseGrappleIterativeColor();
		attack_grapple_stat.innerHTML = Android.getAttackBaseGrappleStat();
		attack_grapple_temp.innerHTML = Android.getAttackBaseGrappleTemp();

		updateDebug(debugMode, "Update Attacks Unarmed");
		attack_unarmed.innerHTML = Android.getAttackBaseUnarmedIterative();
		attack_unarmed.style.color = Android.getAttackBaseUnarmedIterativeColor();
		attack_unarmed_damage.innerHTML = Android.getAttackBaseUnarmedDamage();
		attack_unarmed_damage.style.color = Android.getAttackBaseUnarmedDamageColor();
	
|FOR,%weap,0,COUNT[EQTYPE.Weapon],1,1|
		updateDebug(debugMode, "Update Attacks Weapons - |%weap|");
|IIF(WEAPON.%weap.CATEGORY:Melee)|
		updateDebug(debugMode, "Update Attacks Weapons - |%weap| - Melee");
|IIF(WEAPOND.%weap.WIELD==1)|
		updateDebug(debugMode, "Update Attacks Weapons - |%weap| - Melee - One Handed");
		attack_weapon|%weap|_basehit.innerHTML = Android.getAttackWeaponIterative(|%weap|);
		attack_weapon|%weap|_basehit.style.color = Android.getAttackWeaponIterativeColor(|%weap|);
		attack_weapon|%weap|_ohhit.innerHTML = Android.getAttackWeaponOffHandIterative(|%weap|);
		attack_weapon|%weap|_ohhit.style.color = Android.getAttackWeaponIterativeColor(|%weap|);
|ENDIF|
		updateDebug(debugMode, "Update Attacks Weapons - |%weap| - Melee - Two Handed1");
		attack_weapon|%weap|_thhit.innerHTML = Android.getAttackWeaponTwoHandedIterative(|%weap|);
		updateDebug(debugMode, "Update Attacks Weapons - |%weap| - Melee - Two Handed2");
		attack_weapon|%weap|_thhit.style.color = Android.getAttackWeaponIterativeColor(|%weap|);
|IIF(WEAPOND.%weap.WIELD!=2)|
		updateDebug(debugMode, "Update Attacks Weapons - |%weap| - Melee - Two Weapon");
		attack_weapon|%weap|_twphith.innerHTML = Android.getAttackWeaponTwoWeaponIterative(|%weap|);
		attack_weapon|%weap|_twphith.style.color = Android.getAttackWeaponIterativeColor(|%weap|);
		attack_weapon|%weap|_twphitl.innerHTML = Android.getAttackWeaponTwoWeaponSecondaryLightIterative(|%weap|);
		attack_weapon|%weap|_twphitl.style.color = Android.getAttackWeaponIterativeColor(|%weap|);
		attack_weapon|%weap|_twohit.innerHTML = Android.getAttackWeaponTwoWeaponOffHandIterative(|%weap|);
		attack_weapon|%weap|_twohit.style.color = Android.getAttackWeaponIterativeColor(|%weap|);
|ENDIF|
|IIF(WEAPOND.%weap.WIELD==1)|
		updateDebug(debugMode, "Update Attacks Weapons - |%weap| - Melee - Damage - One Handed  ");
		attack_weapon|%weap|_basedamage.innerHTML = Android.getAttackWeaponDamage(|%weap|);
		attack_weapon|%weap|_basedamage.style.color = Android.getAttackWeaponDamageColor(|%weap|);
		attack_weapon|%weap|_ohdamage.innerHTML = Android.getAttackWeaponDamageOffHand(|%weap|);
		attack_weapon|%weap|_ohdamage.style.color = Android.getAttackWeaponDamageColor(|%weap|);
|ENDIF|
		updateDebug(debugMode, "Update Attacks Weapons - |%weap| - Melee - Damage - Two Handed");
		attack_weapon|%weap|_thdamage.innerHTML = Android.getAttackWeaponDamageTwoHanded(|%weap|);
		attack_weapon|%weap|_thdamage.style.color = Android.getAttackWeaponDamageColor(|%weap|);
|IIF(WEAPOND.%weap.WIELD!=2)|
		updateDebug(debugMode, "Update Attacks Weapons - |%weap| - Melee - Damage - Two Weapon");
		attack_weapon|%weap|_twpdamageh.innerHTML = Android.getAttackWeaponDamageTwoWeaponOffHand(|%weap|);
		attack_weapon|%weap|_twpdamageh.style.color = Android.getAttackWeaponDamageColor(|%weap|);
		attack_weapon|%weap|_twpdamagel.innerHTML = Android.getAttackWeaponDamageTwoWeaponSecondaryLight(|%weap|);
		attack_weapon|%weap|_twpdamagel.style.color = Android.getAttackWeaponDamageColor(|%weap|);
		attack_weapon|%weap|_twodamage.innerHTML = Android.getAttackWeaponDamageTwoWeaponOffHand(|%weap|);
		attack_weapon|%weap|_twodamage.style.color = Android.getAttackWeaponDamageColor(|%weap|);
|ENDIF|
|ENDIF|
|IIF(WEAPON.%weap.CATEGORY:Ranged)|
|FOR,%range1,0,4,1,0|
		updateDebug(debugMode, "Update Attacks Weapons - |%weap| - Ranged - |%range1|");
		attack_weapon|%weap|_ranged|%range1|.innerHTML = Android.getAttackWeaponRangedIterative(|%weap|, |%range1|);
		attack_weapon|%weap|_ranged|%range1|.style.color = Android.getAttackWeaponIterativeColor(|%weap|);
		attack_weapon|%weap|_ranged|%range1|_damage.innerHTML = Android.getAttackWeaponRangedDamage(|%weap|);
		attack_weapon|%weap|_ranged|%range1|_damage.style.color = Android.getAttackWeaponDamageColor(|%weap|);
|ENDFOR|
|ENDIF|
|ENDFOR|

		updateDebug(debugMode, "Update Conditional Modifiers");
		conditional_modifiers.innerHTML = Android.getConditionalModifiers();
		
|FOR,%skill,0,COUNT[SKILLS]-1,1,0|
		updateDebug(debugMode, "Update Skills - |%skill|");
		skill_|%skill|.innerHTML = Android.getSkill(|%skill|);
		skill_|%skill|.style.color = Android.getSkillColor(|%skill|);
		skill_|%skill|_stat.innerHTML = Android.getSkillStat(|%skill|);
		skill_|%skill|_misc.innerHTML = Android.getSkillMisc(|%skill|);
		skill_|%skill|_temp.innerHTML = Android.getSkillTemp(|%skill|);
|ENDFOR|
|%|

		updateDebug(debugMode, "Completed");
	}
	catch(err)
	{
		updateDebug(1, err.description);
	}
}
</script>

<div style="display:none">
<DataBlock>
	<game type="SRD35" />
	<level value="|TOTALLEVELS|" />
	<size value="|SIZE|" />
	<abilities>
		<str value="|STAT.0|" />
		<dex value="|STAT.1|" />
		<con value="|STAT.2|" />
		<int value="|STAT.3|" />
		<wis value="|STAT.4|" />
		<cha value="|STAT.5|" />
	</abilities>
	<saves>
		<fort value="|CHECK.0.BASE|" misc="|CHECK.0.MISC.NOSTAT|" />
		<ref value="|CHECK.1.BASE|" misc="|CHECK.1.MISC.NOSTAT|" />
		<will value="|CHECK.2.BASE|" misc="|CHECK.2.MISC.NOSTAT|" />
		<damage value="13" />
	</saves>
	<initiative value="|INITIATIVEMISC|" />
	<attacks base="|ATTACK.MELEE.BASE|" size="|ATTACK.MELEE.SIZE|">
		<grapple value="|ATTACK.GRAPPLE.BASE|" misc="|ATTACK.GRAPPLE.MISC|" ability="0" />
		<melee value="|ATTACK.MELEE.BASE|" misc="|ATTACK.MELEE.MISC|" ability="0" />
		<ranged value="|ATTACK.RANGED.BASE|" misc="|ATTACK.RANGED.MISC|" ability="1" />
		<unarmed value="|ATTACK.UNARMED.BASE|" misc="|ATTACK.UNARMED.MISC|" ability="0" finessable="|ATTACKD.UNARMED.FINESSEABLE|" damage_base="|ATTACKD.UNARMED.BASEDAMAGE|" damage_bonus="|ATTACKD.UNARMED.BONUSDAMAGE|" />
|FOR,%weap,0,COUNT[EQTYPE.Weapon],1,1|
		<weapon name="|WEAPOND.%weap.NAME|" melee="|OIF(WEAPOND.%weap.CATEGORY:Melee,1,0)|" ranged="|OIF(WEAPOND.%weap.CATEGORY:Ranged,1,0)|" hands="|WEAPOND.%weap.WIELD|" finessable="|WEAPOND.%weap.FINESSEABLE|" light="|WEAPOND.%weap.LIGHT|" hit_bonus="|WEAPOND.%weap.HITBONUS|" attack_separator="|WEAPOND.%weap.ATTACKSEPARATOR|" damage_base="|WEAPOND.%weap.BASEDAMAGE|" damage_bonus="|WEAPOND.%weap.BONUSDAMAGE|" twoweapon_modifier_primary="|WEAPOND.%weap.TWOWEAPONHITPRIMARY|" twoweapon_modifier_secondary="|WEAPOND.%weap.TWOWEAPONHITSECONDARY|" />
|ENDFOR|
	</attacks>
	<defense max_dex_modifier="|ACD.MaxDex|" ability_modifier="|ACD.Ability|" >
		<primary value="|ACD.TotalNoAbility|" />
		<flatfooted value="|ACD.FlatfootedNoAbility|" include_dex_modifier="|ACD.IncludeDex|" />
		<touch value="|ACD.TouchNoAbility|" />
	</defense>
	<damage dr="|DR|">
		<primary current="|HP|" value="|HP-(STAT.2.MOD*TOTALLEVELS).INTVAL|" />
|IIF(VAR.IF(var("UseAlternateDamage")==0;1;0):1)|
		<secondary current="0" value="|HP-(STAT.2.MOD*TOTALLEVELS).INTVAL|" />
|ELSE|
		<secondary current="0" value="|ALTHP|" />
|ENDIF|
	</damage>
	<skills>
|FOR,%skill,0,COUNT[SKILLS]-1,1,0|
		<skill ability="|SKILL.%skill.ABILITY|" rank="|SKILL.%skill.RANK|" misc="|SKILL.%skill.MISC|" untrained="|OIF(SKILL%skill.UNTRAINED,1,0)|">|SKILL.%skill|</skill>
|ENDFOR|
	</skills>
</DataBlock>
</div>
</body>
</html>